Multiple choice

What technique is used to get a good running time for an algorithm such as quick sort, which has bad worst case running time but good average case?

  1. Randomization

  2. Polymorphism

  3. Synchronization

  4. Inheritance

  5. Encapsulation

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is correct. The process is called randomization,  which improves the average running time of cases where worst case running time is bad.