Skip to content
UPEEC

Complexity Analysis

Measure how running time and memory grow with input size. Big-O notation has its own page earlier in this subject.

Easy
Comments 0

This is an overview — pick a sub-topic below.

Sub-topics (8)

Time Complexity

Count how the number of basic steps grows with input size $n$.

Easy♥ 0🔖 0💬 0

Space Complexity

How much extra memory an algorithm needs as $n$ grows.

Easy♥ 0🔖 0💬 0

Big Omega

$\Omega(f(n))$ — an asymptotic lower bound: the algorithm takes at least this long (for large $n$).

Intermediate♥ 0🔖 0💬 0

Big Theta

$\Theta(f(n))$ — a tight bound: both $O(f)$ and $\Omega(f)$.

Intermediate♥ 0🔖 0💬 0

Amortized Analysis

The average cost per operation over a worst-case sequence of operations.

Intermediate♥ 0🔖 0💬 0

Master Theorem

Solves recurrences of the form $T(n) = aT(n/b) + f(n)$.

Advanced♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.