Skip to content

Glossary: Data Structures and Algorithms in Rust

Worst case

Also written: worst-case

The most work an algorithm can need for an input of size n, such as searching for a missing target in linear search. It is used for planning because it describes the slowest outcome users could face.

Where the book teaches it

Related terms

Average caseBig-O notation