E SolutionAnswer n nlogn Proof We know the theta definition

E

Solution

Answer:

n + nlogn

Proof:

We know the theta definition:

c1*g(n) < = f(n) <= c2*g(n) , where c is a constant and is greater than zero

Here f(n) = n +nlogn , g(n) = nlogn

c1* nlogn < = n + nlogn < = c2*nlogn

Let c1 = 2 , c1 = 1

nlogn < = n + nlogn < = nlogn

nlogn < = n + nlogn

check at higher values of n , nlogn will be less than n + nlogn

 E SolutionAnswer: n + nlogn Proof: We know the theta definition: c1*g(n) < = f(n) <= c2*g(n) , where c is a constant and is greater than zero Here f(n) =

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site