ArticleslgStudy

engineering

Circuit complexity

Circuit complexity is a engineering 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 Circuit complexity rather than just read about it. In short: In theoretical computer science, circuit complexity is a branch of computational complexity theory in which Boolean functions are classified according to the size or depth of the Boolean circuits that compute them. A related notion is the circuit complexity of a recursive language that is decided by a uniform family of circuits C1,C2,… (see below).

Circuit complexity — main illustration
Circuit complexity — illustration

Key takeaways

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

Reference excerpt

In theoretical computer science, circuit complexity is a branch of computational complexity theory in which Boolean functions are classified according to the size or depth of the Boolean circuits that compute them. A related notion is the circuit complexity of a recursive language that is decided by a uniform family of circuits C1,C2,… (see below). Proving lower bounds on size of Boolean circuits computing explicit Boolean functions is a popular approach to separating complexity classes. For example, a prominent circuit class P/poly consists of Boolean functions computable by circuits of polynomial size. Proving that 𝖭𝖯⊈𝖯/𝗉𝗈𝗅𝗒 would separate P and NP (see below). Complexity classes defined in terms of Boolean circuits include AC0, AC, TC0, NC1, NC, and P/poly.

Size and depth A Boolean circuit with n input bits is a directed acyclic graph in which every node (usually called gates in this context) is either an input node of in-degree 0 labelled by one of the n input bits, an AND gate, an OR gate, or a NOT gate. One of these gates is designated as the output gate. Such a circuit naturally computes a function of its n inputs. The size of a circuit is the number of gates it contains and its depth is the maximal length of a path from an input gate to the output gate. There are two major notions of circuit complexity. The circuit-size complexity of a Boolean function f is the minimal size of any circuit computing f. The circuit-depth complexity of a Boolean function f is the minimal depth of any circuit computing f. These notions generalize when one considers the circuit complexity of any formal language that contains strings with different bit lengths, especially infinite languages. Boolean circuits, however, only allow a fixed number of input bits. Thus, no single Boolean circuit is capable of deciding such a language. To account for this possibility, one considers families of circuits C1,C2,… where each Cn accepts inputs of size n. Each circuit family will naturally generate the language by circuit Cn outputting 1 when a length n string is a member of the family, and 0 otherwise. We say that a family of circuits is size minimal if there is no other family that decides on inputs of any size, n, with a circuit of smaller size than Cn (respectively for depth minimal families). Conversely, every formal language is decided by some Boolean circuit family. Thus, circuit complexity is meaningful even for non-recursive languages. The notion of a uniform family enables variants of circuit complexity to be related to algorithm-based complexity measures of recursive languages. However, the non-uniform variant is helpful to find lower bounds on how complex any circuit family must be in order to decide given languages. Hence, the circuit-size complexity of a formal language A is defined as the function t:ℕ→ℕ, that relates a bit length of an input, n, to the circuit-size complexity of a minimal circuit Cn that decides whether inputs of that length are in A. The circuit-depth complexity is defined similarly.

Uniformity Boolean circuits are one of the prime examples of so-called non-uniform models of computation in the sense that inputs of different lengths are processed by different circuits, in contrast with uniform models such as Turing machines where the same computational device is used for all possible input lengths. An individual computational problem is thus associated with a particular family of Boolean circuits C1,C2,… where each Cn is the circuit handling inputs of n bits. A uniformity condition is often imposed on these families, requiring the existence of some possibly resource-bounded Turing machine that, on input n, produces a description of the individual circuit Cn. When this Turing machine has a running time polynomial in n, the circuit family is said to be P-uniform. The stricter requirement of DLOGTIME-uniformity is of particular interest in the study of shallow-depth circuit-classes such as AC0 or TC0. When no resource bounds are specified, a language is recursive (i.e., decidable by a Turing machine) if and only if the language is decided by a uniform family of Boolean circuits.

Polynomial-time uniform A family of Boolean circuits {Cn:n∈ℕ} is polynomial-time uniform if there exists a deterministic Turing machine M, such that

M runs in polynomial time For all n∈ℕ, on input 1n, M outputs a description of Cn

Logspace uniform A family of Boolean circuits {Cn:n∈ℕ} is logspace uniform if there exists a deterministic Turing machine M, such that

M runs in logarithmic work space (i.e. M is a log-space transducer) For all n∈ℕ, on input 1n, M outputs a description of Cn

… excerpt ends here. Continue reading the full article.

Illustrations

Circuit complexity: Example Boolean circuit. The ∧ nodes are AND gates, the ∨ nodes are OR gates, and the ¬ nodes are NOT gates.
Example Boolean circuit. The ∧ nodes are AND gates, the ∨ nodes are OR gates, and the ¬ nodes are NOT gates.

Worked examples

Example 1 — a first encounter with Circuit complexity

Start with the simplest possible case. Write down what Circuit complexity claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, 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 Circuit complexity 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 Circuit complexity 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 Circuit complexity

In research
Circuit complexity appears in engineering 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 Circuit complexity 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
Circuit complexity is common in secondary-school and first-year university syllabi. It links to neighbouring topics Circuit complexity, Computational complexity theory, so understanding it makes those chapters shorter.
In everyday life
Look for Circuit complexity 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 “Circuit complexity” →

How to study Circuit complexity in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Circuit complexity 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 Circuit complexity out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Circuit complexity in simple terms?

In theoretical computer science, circuit complexity is a branch of computational complexity theory in which Boolean functions are classified according to the size or depth of the Boolean circuits that compute them. A related notion is the circuit complexity of a recursive language that is decided b…

Why does Circuit complexity matter?

Because it connects several engineering 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 Circuit complexity?

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 Circuit complexity.

Tags

  • Circuit complexity
  • Computational complexity theory

Keep exploring