Question: a) (10 pts) Consider two algorithms A and B with running times Ta(n)= 100n and T(n) = n/1000, respectively. Algorithm A solves instances of
a) (10 pts) Consider two algorithms A and B with running times Ta(n)= 100n and T(n) = n/1000, respectively. Algorithm A solves instances of size n-10 in 1 millisecond. At the same time, algorithm B manages to solve instances of size n=1000. Which one should be used to solve instances of size n = 100000?
Step by Step Solution
3.59 Rating (152 Votes )
There are 3 Steps involved in it
To determine which algorithm to use for instances of size n ... View full answer
Get step-by-step solutions from verified subject matter experts
