Question: Question 1 (Compulsory, 20 marks). a) Place the following functions into their proper asymptotic order: f:(n) = nlog.n; f;(n) = n(log,n)?: f(n) = 2 +

Question 1 (Compulsory, 20 marks). a) Place the following functions into their proper asymptotic order: f:(n) = nlog.n; f;(n) = n(log,n)?: f(n) = 2 + 2 + .. + 2: f.(n) = log2 ( 2 + 21 + .. +2"). [4 marks] b) Work out the time complexity of the function: Function f(n){if (n>0{ x=x+1; f(n-1); f(n-1); f(n-1)}} [4 marks] c) Solve the linear recurrence relation: T. = 51,-1-61,2 [4 marks] d) A graph G=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
