Index Ai Academy
Glossary · Phase 7 · Software engineering

Worst case

Also written: best case, worst-case, best-case

How an algorithm behaves on its least (or most) favorable input, which can be far from its usual speed.

Try it now

Each pass throws away half of what's left. Watch low and high close in.

Learn it properly

Searching, sorting and dynamic programming · The classic algorithms, and the ideas behind them. About 45 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write