Sequences and limits
What it means to approach a value — the idea everything else in calculus is built on — and its computing twin, asymptotic analysis.
11 topics
Topics
Sequences
An infinite list — a function . Every iterative algorithm produces one: the successive guesses of Newton's method, the losses of a training run, the cost of an algorithm on inputs of size .
Convergence of sequences
means: however small a tolerance you pick, from some index on every term is within of . A sequence that does not converge diverges — to infinity, or by oscillating forever.
Monotone and bounded sequences
A monotone sequence converges if and only if it is bounded. It is the cleanest way to prove convergence without knowing the limit in advance.
Subsequences
Keeping infinitely many terms of a sequence, in order. Bolzano–Weierstrass: every bounded sequence of real numbers has a convergent subsequence — the key fact behind the existence of maxima and minima.
Limit of a function
: the values can be made as close to as we like by taking close enough to (but not equal). Derivatives, integrals and continuity are all defined as limits.
One-sided limits
Approaching only from the left () or only from the right (). The limit exists exactly when both one-sided limits exist and agree.
Infinite limits
as : the function grows without bound near a point, as near 0. The graph has a vertical asymptote there.
Limits at infinity
What approaches as : the long-run behaviour of a function, and of an algorithm's cost as inputs grow.
Infinitesimals and equivalences
A quantity that tends to 0. Two infinitesimals are equivalent () if : near 0, , , . Replacing one by the other simplifies limits — and, in floating point, avoids catastrophic cancellation.
Orders of growth
The hierarchy of how fast functions grow: logarithms ≪ powers ≪ exponentials ≪ factorials. It is the language in which we compare algorithms.
Asymptotic notation (O, o, Ω, Θ)
Landau's symbols compare functions up to constant factors: (grows no faster), (no slower), (same rate), (strictly slower). Born in number theory, adopted by computer science to classify algorithms, and by numerical analysis to measure errors.
Where this area leads in computing
λ Scientific computing and algorithms ★★★★★
- Algorithm analysis and complexity★★★★★←Sequences, Limit of a function, Limits at infinity, Orders of growth, Asymptotic notation (O, o, Ω, Θ)
- Scientific computing★★★★★←Sequences, Convergence of sequences, Asymptotic notation (O, o, Ω, Θ)
- Monte Carlo methods★★★★★←Asymptotic notation (O, o, Ω, Θ)
- Floating point (IEEE 754)★★★★★←Limit of a function, Infinite limits, Infinitesimals and equivalences