Question: (10 marks) Suppose you are given 3 algorithms A1, A2 and A3 solving the same problem. You know that in the worst case the running

(10 marks) Suppose you are given 3 algorithms A1, A2 and A3 solving the same problem. You know that in the worst case the running times are Ti(n) = 108n4 + 101n, 10 T2(n) = n10", T3(n) = 1012 n2 log10 n + log10(n") (a) Which algorithm is the fastest for very large inputs? Which algorithm is the slowest for very large inputs? (Justify your answer.) (b) For which problem sizes is A2 the better than A? (Justify your answer.) (c) For which problem sizes is A2 the better than A3? (Justify your answer.) You can consider inputs only of size > 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
