ArticleslgStudy

computer science

Descriptive complexity theory

Descriptive complexity theory is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Descriptive complexity theory rather than just read about it. In short: Descriptive complexity is a branch of computational complexity theory and of finite model theory that characterizes complexity classes by the type of logic needed to express the languages in them. For example, PH, the union of all complexity classes in the polynomial hierarchy, is precisely the class of languages expressible by statements of second-order logic.

Key takeaways

  • Descriptive complexity theory belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Descriptive complexity theory to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Descriptive complexity theory from memory before moving on to harder problems.

Reference excerpt

Descriptive complexity is a branch of computational complexity theory and of finite model theory that characterizes complexity classes by the type of logic needed to express the languages in them. For example, PH, the union of all complexity classes in the polynomial hierarchy, is precisely the class of languages expressible by statements of second-order logic. This connection between complexity and the logic of finite structures allows results to be transferred easily from one area to the other, facilitating new proof methods and providing additional evidence that the main complexity classes are somehow "natural" and not tied to the specific abstract machines used to define them. That is, it provides a machine-independent approach to complexity theory. Specifically, each logical system produces a set of queries expressible in it. The queries – when restricted to finite structures – correspond to the computational problems of traditional complexity theory. The first main result of descriptive complexity was Fagin's theorem, shown by Ronald Fagin in 1974. It established that NP is precisely the set of languages expressible by sentences of existential second-order logic; that is, second-order logic excluding universal quantification over relations, functions, and subsets. Many other classes were later characterized in such a manner.

The setting When we use the logic formalism to describe a computational problem, the input is a finite structure, and the elements of that structure are the domain of discourse. Usually the input is either a string (of bits or over an alphabet) and the elements of the logical structure represent positions of the string, or the input is a graph and the elements of the logical structure represent its vertices. The length of the input will be measured by the size of the respective structure. Whatever the structure is, we can assume that there are relations that can be tested, for example "E(x,y) is true if and only if there is an edge from x to y" (in case of the structure being a graph), or "P(n) is true if and only if the nth letter of the string is 1." These relations are the predicates for the first-order logic system. We also have constants, which are special elements of the respective structure, for example if we want to check reachability in a graph, we will have to choose two constants s (start) and t (terminal). In descriptive complexity theory we often assume that there is a total order over the elements and that we can check equality between elements. This lets us consider elements as numbers: the element x represents the number n if and only if there are (n−1) elements y with y<x. Thanks to this we also may have the primitive predicate "bit", where bit(x,k) is true if only the kth bit of the binary expansion of x is 1. (We can replace addition and multiplication by ternary relations such that plus(x,y,z) is true if and only if x+y=z and times(x,y,z) is true if and only if x∗y=z).

Overview of characterisations of complexity classes If we restrict ourselves to ordered structures with a successor relation and basic arithmetical predicates, then we get the following characterisations:

First-order logic defines the class of logspace-uniform AC0, the languages recognized by polynomial-size circuits of bounded depth, which equals the languages recognized by a concurrent random access machine in constant time. First-order logic augmented with majority operators yield logspace-uniform TC0. First-order logic augmented with symmetric or deterministic transitive closure operators yield L, problems solvable in logarithmic space. First-order logic with a transitive closure operator yields NL, the problems solvable in nondeterministic logarithmic space. First-order logic with a least fixed point operator gives P, the problems solvable in deterministic polynomial time, but uniquely on ordered structures. Fagin's theorem: Existential second-order logic yields NP. Universal second-order logic (excluding existential second-order quantification) yields co-NP. Second-order logic corresponds to the polynomial hierarchy PH. Second-order logic with a transitive closure operator (commutative or not) yields PSPACE, the problems solvable in polynomial space. Second-order logic with a least fixed point operator gives EXPTIME, the problems solvable in exponential time. HO, the complexity class defined by higher-order logic, is equal to ELEMENTARY

Sub-polynomial time

FO without any operators In circuit complexity, first-order logic with arbitrary predicates can be shown to be equal to AC0, the first class in the AC hierarchy. Indeed, there is a natural translation from FO's symbols to nodes of circuits, with ∀,∃ being ∧ and ∨ of size n. First-order logic in a signature with arithmetical predicates characterises the restriction of the AC0 family of circuits to those constructible in alternating logarithmic time. First-order logic in a signature with only the order relation corresponds to the set of star-free languages.

Transitive closure logic First-order logic gains substantially in expressive power when it is augmented with an operator that computes the transitive closure of a binary relation. The resulting transitive closure logic is known to characterise non-deterministic logarithmic space (NL) on ordered structures. This was used by Immerman to show that NL is closed under complement (i. e. that NL = co-NL). When restricting the transitive closure operator to deterministic transitive closure, the resulting logic exactly characterises logarithmic space on ordered structures.

Second-order Krom formulae On structures that have a successor function, NL can also be characterised by second-order Krom formulae. SO-Krom is the set of Boolean queries definable with second-order formulae in conjunctive normal form such that the first-order quantifiers are universal and the quantifier-free part of the formula is in Krom form, which means that the first-order formula is a conjunction of disjunctions, and in each "disjunction" there are at most two variables. Every second-order Krom formula is equivalent to an existential second-order Krom formula. SO-Krom characterises NL on structures with a successor function.

Polynomial time On ordered structures, first-order least fixed-point logic captures PTIME:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Descriptive complexity theory

Start with the simplest possible case. Write down what Descriptive complexity theory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Descriptive complexity theory before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Descriptive complexity theory ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Descriptive complexity theory

In research
Descriptive complexity theory appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Descriptive complexity theory in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Descriptive complexity theory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational complexity theory, Descriptive complexity, Finite model theory, so understanding it makes those chapters shorter.
In everyday life
Look for Descriptive complexity theory outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Descriptive complexity theory” →

How to study Descriptive complexity theory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Descriptive complexity theory means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Descriptive complexity theory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Descriptive complexity theory in simple terms?

Descriptive complexity is a branch of computational complexity theory and of finite model theory that characterizes complexity classes by the type of logic needed to express the languages in them. For example, PH, the union of all complexity classes in the polynomial hierarchy, is precisely the cla…

Why does Descriptive complexity theory matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Descriptive complexity theory?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Descriptive complexity theory.

Tags

  • Computational complexity theory
  • Descriptive complexity
  • Finite model theory

Keep exploring