Chapter 4: Problem 39
Al and Bob are arguing about their algorithms. Al claims his \(O(n \log n)\) time method is always faster than Bob's \(O\left(n^{2}\right)\) -time method. To settle the issue, they perform a set of experiments. To Al's dismay, they find that if \(n<100,\) the \(O\left(n^{2}\right)\) -time algorithm runs faster, and only when \(n \geq 100\) is the \(O(n \log n)\) -time one better. Explain how this is possible.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.