Question: Let a 0 = 1, a n = 6a n1 + 3 n be the recurrence relation of algorithm A and T(1) = 1, T(n)
Let a0 = 1, an = 6an1 + 3n be the recurrence relation of algorithm A and
T(1) = 1, T(n) = 2T(n/5)+n be the recurrence relation of algorithm B.
- Find the solution for both relations using the Characteristic Polynomial method.
- Without proof, find Big-Oh for both algorithms.
- Which algorithm is faster? Justify your answer using Big-Oh notation.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
