Skip to main content

9 docs tagged with "complexity"

View all tags

Amortized Analysis

Some structures cannot be made cheap on every single call, but can be made cheap *on average over any

Big-O Notation

Big-O describes an upper bound on growth. Saying an algorithm is $O(n^2)$ claims that beyond some

Common Complexities

In practice you meet perhaps eight growth classes. Recognising which one a piece of code falls into —

Complexity Cheat Sheet

This page is a reference, not a tutorial — each numbered page in this section explains the reasoning

P, NP & Intractability

Most complexity analysis on this site asks how fast a known algorithm runs. This page asks a

Space Complexity

Time complexity answers "how does the work grow?"; space complexity asks the same question about