Complexity and Computability

Big O Notation

What Big O measures, how common data structures compare and whether it always means worst case.

Is Big O Notation Always the Worst Case?

Big O is not always about the worst case. Learn what Big O measures, how best, average and worst cases differ, and when each one matters in practice.

2 min read

O(n) vs O(n log n): Which Is Faster?

Compare the two growth rates with real numbers, see where the log factor hurts, and learn why sorting is benchmarked at n log n. O(n) vs O(n log n) explained.

2 min read

What Does Big O Mean in Python?

Big O in Python explained: the cost of list append, insert, membership tests, set and dict lookups, sorting and deque operations, with code examples.

3 min read

What Does the O in Big O Stand For?

What does the O in Big O stand for? It traces to the German word Ordnung, meaning order. Here is the history of the notation and what the letter means.

2 min read

Related topics

More in complexity and computability