Function

Definition. A function f:A→Bf: A \to B assigns to each element of the domain AA exactly one element of the codomain BB; formally it is a relation f⊆A×Bf \subseteq A \times B in which every a∈Aa \in A appears in exactly one pair.

The key properties are Injective, Surjective, and bijective. Machines compute functions from strings to answers, and resource bounds are functions from N\mathbb{N} to N\mathbb{N} compared by Big-O. Defined in Lecture 2.

Created · Updated
Copyright © 2026 Jared Coleman. All rights reserved.