Loading course index…

Algorithm

A finite, unambiguous procedure for solving a specified problem.

Explore in context

Amortized analysis

A bound on total cost over a sequence of operations, expressed per operation; no input probability distribution is required.

Explore in context

Array

An indexed sequence whose entries can be accessed directly. Its representation affects resizing and memory costs.

Explore in context

Asymptotic analysis

The study of how a cost function grows as input size becomes sufficiently large.

Explore in context

Average case

Expected cost under an explicitly specified distribution of inputs of a fixed size.

Explore in context

Big O

An eventual upper bound up to a positive constant factor. It does not inherently mean worst case.

Explore in context

Big Omega

An eventual lower bound up to a positive constant factor.

Explore in context

Big Theta

A matching eventual upper and lower bound up to positive constant factors.

Explore in context

Binary search

Search of sorted data by repeatedly eliminating half of the remaining interval.

Explore in context

Component

An equivalence class of mutually connected objects in the connectivity model.

Explore in context

Cost model

The operations counted as a proxy for a resource such as execution time.

Explore in context

Data structure

A representation of information together with operations for accessing or changing it.

Explore in context

Doubling ratio

The ratio T(2n)/T(n), used experimentally to estimate a power-law exponent.

Explore in context

FIFO

First in, first out: the removal order of a queue.

Explore in context

GCD

The greatest positive common divisor of two nonnegative integers not both zero.

Explore in context

Generic type

A class or interface parameterized by a type, such as Stack<Integer>.

Explore in context

Invariant

A statement preserved by every relevant step of an algorithm.

Explore in context

Iterator

An object that traverses a collection through operations such as hasNext and next.

Explore in context

LIFO

Last in, first out: the removal order of a stack.

Explore in context

Logarithm

The exponent needed to raise a specified base to a value; repeated halving produces logarithmic counts.

Explore in context

Loitering

Retaining an unnecessary reference to an object that could otherwise be reclaimed.

Explore in context

Monte Carlo simulation

An experiment using randomized trials to estimate or study a quantity.

Explore in context

Path compression

Redirecting visited union–find parent links toward a root to accelerate later searches.

Explore in context

Percolation

In the supplied grid model, the existence of an open path connecting the top to the bottom.

Explore in context

Recurrence

An equation or inequality describing a cost in terms of smaller instances.

Explore in context

Recursion

A procedure calling itself on another instance, with a stopping condition.

Explore in context

Stable sort

A sort that preserves the relative order of equal-key records.

Explore in context

Tilde notation

f(n) ~ g(n) means f(n)/g(n) tends to 1; the leading coefficient remains relevant.

Explore in context

Union–find

A data structure maintaining disjoint components under merges and representative queries.

Explore in context

Worst case

The maximum cost among permitted inputs of a fixed size.

Explore in context