T(n) = 7T(n/2) + n^2
comparing with the equation (MASTER THEOREM)
we get ,a=7,b=2,k=2,p=0
now it satisfies a>b^k,
so case first of master theorem
so what will be the answer, according to the extended master theorem,
T(n) = Θ (n2.80735) that is approximate value of θ(n3)
T(n)=nlog27 =n2.81 i.e f(n) is polynomially smaller than t(n), therefore it is first case
therefore, ans is ⊖(nlog7) or ⊖(n2.81)
64.3k questions
77.9k answers
244k comments
80.0k users