endofunctions
An endofunction on a set S is a function from S to itself. If S is finite with cardinality n, there are n^n endofunctions. Endofunctions on S are sometimes called endomaps of S; in category theory, an endomorphism is any morphism from an object to itself, but endofunctions emphasize the underlying set-theoretic case.
Examples include the identity function id_S, which fixes every element, and constant functions that map all
Functional graphs: Each endofunction f on S defines a directed graph on S in which every vertex
Dynamics: Under iteration, the sequence x, f(x), f^2(x), … eventually becomes periodic on finite sets. The cycle
Algebraic viewpoint: The set End(S) of all endofunctions on S forms the transformation monoid T_S under composition,