Math 2.0

Computer science Definition

Kolmogorov complexity

Builds on Universal Turing machineComputable function

Definition

Let {0,1}∗\set{0,1}^* be the set of finite binary strings, and let ∣p∣\abs{p} denote the length of a string pp. For a partial computable function φ ⁣:{0,1}∗→{0,1}∗\varphi \colon \set{0,1}^* \to \set{0,1}^* and a string xx, let Cφ(x)=min⁡{∣p∣:φ(p)=x},C_\varphi(x) = \min \set{\abs{p} : \varphi(p) = x}, with Cφ(x)=∞C_\varphi(x) = \infty if no such pp exists. Fix a partial computable function UU, given by a universal Turing machine, with this property. For every partial computable φ\varphi there is a string qφq_\varphi with U(qφp)=φ(p)U(q_\varphi p) = \varphi(p) for all pp, where qφpq_\varphi p is the concatenation. The (plain) Kolmogorov complexity of xx is C(x)=CU(x)C(x) = C_U(x).

Remarks

Invariance theorem: for every partial computable φ\varphi and every xx, C(x)≤Cφ(x)+∣qφ∣C(x) \le C_\varphi(x) + \abs{q_\varphi}. So two choices of UU give complexities that differ by at most a constant.

Example: there is a constant cc with C(x)≤∣x∣+cC(x) \le \abs{x} + c for all xx, by taking φ\varphi the identity, which has Cφ(x)=∣x∣C_\varphi(x) = \abs{x}. For the string 0n0^n of nn zeros, C(0n)≤log⁡2n+c′C(0^n) \le \log_2 n + c' for a constant c′c', because a program can read nn in binary and print nn zeros.

Non-example: Cid(x)=∣x∣C_{\mathrm{id}}(x) = \abs{x}, the complexity for the identity function, is not the Kolmogorov complexity. The identity is not universal, and Cid(0n)=nC_{\mathrm{id}}(0^n) = n exceeds C(0n)C(0^n) by more than any constant.

For each nn there is a string xx of length nn with C(x)≥nC(x) \ge n, since there are 2n2^n such strings but only 2n−12^n - 1 strings of length less than nn. The function CC is not computable. A variant, the prefix-free complexity KK, uses a universal machine whose domain is a prefix-free set.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Computable function concept
  2. Universal Turing machine object
  3. Kolmogorov complexity definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Kolmogorov_complexity
About this page
Tag18DPY9J8YP
URIm2://18DPY9J8YP
Kinddefinition
WritingW0 stub
MSC68Q30, 03D32
DefinesKolmogorov complexity
UsesUniversal Turing machine, Computable function
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.