Question: Al and Bob are arguing about their algorithms. Al claims his O(nlogn)-time method is always faster than Bobs O(n 2 )-time method. To settle the
Al and Bob are arguing about their algorithms. Al claims his O(nlogn)-time method is always faster than Bob’s O(n2)-time method. To settle the issue, they perform a set of experiments. To Al’s dismay, they find that if n < 100, the O(n2)-time algorithm runs faster, and only when n ≥ 100 is the O(nlogn)-time one better. Explain how this is possible.
Step by Step Solution
3.48 Rating (168 Votes )
There are 3 Steps involved in it
To say that Als algorithm is bigOh of ... View full answer
Get step-by-step solutions from verified subject matter experts
