Due: Nov 8 Grading: 3 points / problem Quiz over this on Nov 9? Put into the file ~/HW/lab15/readme.txt the name of the file with your answers (in the lab15 directory). You can use a text file, word document, whatever. Note - in this file ^ means exponent, not XOR. 1) Put the following into ascending big-O order, and "give reasons" why: f0(n) = 5 * n f1(n) = 10 * log(n) f2(n) = n * log(n) f3(n) = n^2 / 10 f4(n) = (log n)^5 f5(n) = 1.5 ^ (sqrt(n)) f6(n) = 1.5 ^ n f7(n) = (log n) ^ (3 * log n) f8(n) = 4 * sqrt(log n) f9(n) = n! (use Sterling's formula) f10(n) = (n choose n/2) (look up def of combinations, use Sterling's formula, assume n is even) f11(n) = n ^ n f12(n) = 2 ^ (2 ^ n) * reasons why: (a) do the limit and l'Hospital's rule, (b) some algebra and the defintion with c and n0, (c) plugging in larger values of and seeing the right pattern 2) Let f(n) = 4 * n^2 - 5 * n + log(n), g(n) = n^3 / 4, h(n) = n * log(n) + 2 * n Complete the following table with yes/no O Omega Theta o omega >= for all n>=1 <= for all n>=1 f(n) is __ of g(n) g(n) is __ of f(n) f(n) is __ of h(n) h(n) is __ of f(n) g(n) is __ of h(n) h(n) is __ of g(n) Example, w(n) = n, v(n) = n^2, z(n) = 5 * n^2 + 10 * (log n)^4 - 2 * n O Omega Theta o omega >= for all n>=1 <= for all n>=1 w(n) is __ of v(n) yes no no yes no no yes v(n) is __ of w(n) no yes no no yes yes no z(n) is __ of v(n) yes yes yes no no 3) Tree for the recurrence relation: T(n) = 3 * T(n/3) + n (Note we did on the board T(n) = 2 * T(n/2) + n, also did T(n) = 4 * T(n/2) + n) Include in your tree/picture at each level: depth, # nodes, running time / node, total running time Include the depth of the tree and the total running time when you add up the whole tree