DSA-Bootcamp-Java icon indicating copy to clipboard operation
DSA-Bootcamp-Java copied to clipboard

Can't calculate p whule solving T(n) = 7T(n/2) + n². Can you please provide solutions to the questions given for complexity problems.

Open devilkiller-ag opened this issue 2 years ago • 1 comments

devilkiller-ag avatar Jun 09 '22 09:06 devilkiller-ag

u can use discord channel for doubts .

for ur problem ....

we have,

a1= 7 b1 =1/2

we know , a1b1^p =1

=>7*(1/2)^p =1 =>7 = 2^P

taking log

log 7 = p(log 2)

=> p = log 7 /log 2 => p =2.8 (approx)

wre9-tesh avatar Jun 10 '22 11:06 wre9-tesh

@devilkiller-ag if the problem is solved, let's close the issue.

kapilepatel avatar Aug 20 '22 11:08 kapilepatel

Sure Sir. Thank you 😄

devilkiller-ag avatar Aug 20 '22 11:08 devilkiller-ag