Question: Suppose that algorithm A takes 1000n^3 steps and algorithm B takes 2^n steps (Note the carot symbol ^ means raise to the power of which
Suppose that algorithm A takes 1000n^3 steps and algorithm B takes 2^n steps (Note the carot symbol ^ means raise to the power of which we use here becuase we cannot create the appropriate mathematical symbol in moodle) for a problem of size n. For what size of problem is algorithm A faster than B (meaning algorithm A has fewer steps than B)? In your answer describe not only what the answer is but how you arrived at the answer.
Step by Step Solution
3.38 Rating (142 Votes )
There are 3 Steps involved in it
To determine when algorithm A is faster than algorithm B we need to find the value of n such that th... View full answer
Get step-by-step solutions from verified subject matter experts
