Worst case

The most work an algorithm can take on the hardest input of a given size. This is the number to plan with, since a real user can hit the hard input. A guarantee on the worst case is stronger than an average.

Back to the glossary