ArticleslgStudy

engineering

TC0

TC0 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 TC0 rather than just read about it. In short: In theoretical computer science, and specifically computational complexity theory and circuit complexity, TC0 (Threshold Circuit) is the first class in the hierarchy of TC classes. TC0 contains all languages which are decided by Boolean circuits with constant depth and polynomial size, containing only unbounded fan-in AND gates, OR gates, NOT gates, and MAJ gates (equivalently, threshold gates).

TC0 — main illustration
TC0 — illustration

Key takeaways

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

Reference excerpt

In theoretical computer science, and specifically computational complexity theory and circuit complexity, TC0 (Threshold Circuit) is the first class in the hierarchy of TC classes. TC0 contains all languages which are decided by Boolean circuits with constant depth and polynomial size, containing only unbounded fan-in AND gates, OR gates, NOT gates, and MAJ gates (equivalently, threshold gates). TC0 contains several important problems, such as sorting n n-bit numbers, multiplying two n-bit numbers, integer division or recognizing the Dyck language with multiple types of parentheses. It is commonly used to model the computational complexity of bounded-depth neural networks, and indeed, it was originally proposed for this purpose.

Definitions A Boolean circuit family is a sequence of Boolean circuits C1,C2,C3,… consisting of a feedforward network of Boolean functions. A binary language L∈2∗ is in the TC0 class if there exists a Boolean circuit family C1,C2,C3,…, such that

There exists a polynomial function p, and a constant d. Each Cn is composed of up to p(n) unbounded fan-in AND, OR, NOT, and MAJ gates in up to d layers. For each x∈2n, we have x∈L iff Cn(x)=1.

Equivalently, instead of majority gates, we can use threshold gates with integer weights and thresholds, where all weights and thresholds are bounded by a polynomial. A threshold gate with k inputs is defined by a list of weights w1,…,wk and a single threshold θ. Upon binary inputs x1,…,xk, it outputs +1 if ∑iwixk>θ, else it outputs −1. A threshold gate is also called an artificial neuron. Consider the gates AND, OR, NOT, and threshold. AND and OR are monotonic in the sense that flipping an input from -1 to +1 can only change the output from -1 to +1, never the reverse. This is not for NOT. As for threshold, it is monotonic if all weights are non-negative. Theoreticians have studied the theory of monotonic Boolean circuits, those with only monotonic gates. The TC0 can be cast into the monotonic form as follows. In addition to the original inputs x1,…,xk, also provide the network with negations of binary inputs: ¬x1,…,¬xk. With these, a 1-layer TC0 circuit can be converted to a monotonic 1-layer monotonic TC0 circuit with twice as many inputs. Iterating this, any d-layer TC0 circuit can be converted to a d-layer monotonic TC0 circuit, where each layer has at most twice as many wires. Formally, therefore, TC0 is the languages decidable by some Boolean circuit family C1,C2,C3,… such that

There exists a polynomial function p, and a constant d. Each Cn is composed of up to p(n) threshold gates in up to d layers, whose weights are non-negative integers, thresholds are integers, and both weights and thresholds are bounded within ±p(n). For each x∈2n, we have x∈L iff Cn(x)=1. In this article, we by default consider Boolean circuits with a polynomial number of AND, OR, NOT, and threshold gates, with polynomial bound on integer weights and thresholds. The polynomial bound on weights and thresholds can be relaxed without changing the class 𝖳𝖢0. In arithmetic circuit complexity theory, 𝖳𝖢0 can be equivalently characterized as the class of languages defined as the images of sign∘fn, where each fn:{0,1}n→ℤ is computed by a polynomial-size constant-depth unbounded-fan-in arithmetic circuits with + and × gates, and constants from {−1,0,+1}.

Complexity class relations

We can relate TC0 to other circuit classes, including AC0 and NC1 as follows:

𝖠𝖢0⊊𝖠𝖢0[p]⊊𝖳𝖢0⊆𝖭𝖢1.

Whether 𝖳𝖢0⊆𝖭𝖢1 is a strict inclusion is "one of the main open problems in circuit complexity". In fact, it is even open whether 𝖳𝖢0⊆𝖯/𝗉𝗈𝗅𝗒 is a strict inclusion! This is in some sense unsurprising, since there is no natural proof for 𝖳𝖢0⊊𝖯/𝗉𝗈𝗅𝗒, assuming that there is a cryptographically secure pseudorandom number generator in 𝖳𝖢0, which have been explicitly constructed under the assumption that factoring Blum integers is hard (i.e. requires circuits of size 2𝗉𝗈𝗅𝗒(n)), which is widely suspected to be true. More generally, randomness and hardness for have been shown to be closely related. It is also an open question whether 𝖭𝖤𝖷𝖯⊆𝖳𝖢0. Indeed, 𝖭𝖤𝖷𝖯⊈𝖠𝖢𝖢0 was only proven in 2011. Note that because non-uniform 𝖳𝖢0 and 𝖠𝖢𝖢0 can compute functions that are not Turing-computable, it is certainly the case that 𝖳𝖢0⊈𝖭𝖤𝖷𝖯 and 𝖠𝖢𝖢0⊈𝖭𝖤𝖷𝖯. The 2011 result simply shows that 𝖠𝖢𝖢0 and 𝖭𝖤𝖷𝖯 are incomparable classes. The open question is whether 𝖳𝖢0 and 𝖭𝖤𝖷𝖯 are incomparable as well. Note that, while the nondeterministic time hierarchy theorem proves that 𝖭𝖯⊊𝖭𝖤𝖷𝖯, both complexity classes are uniform, meaning that a single Turing machine is responsible for solving the problem at any input length. In contrast, a 𝖳𝖢0 circuit family may be non-uniform, meaning that there may be no good algorithm for finding the correct circuit, other than exhaustive search over all 2𝗉𝗈𝗅𝗒(n) possible Boolean circuits of bounded depth and 𝗉𝗈𝗅𝗒(n) size, then checking all 2n possible inputs to verify that the circuit is correct. It has been proven that if 𝖳𝖢0=𝖭𝖢1, then for any ϵ>0, there exists a 𝖳𝖢0 circuit family of gate number O(n1+ϵ) that solves the Boolean Formula Evaluation problem. Thus, any (strongly) superlinear bound suffices to prove 𝖳𝖢0≠𝖭𝖢1.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with TC0

Start with the simplest possible case. Write down what TC0 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 TC0 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 TC0 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 TC0

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

How to study TC0 in 20 minutes

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

Frequently asked questions

What is TC0 in simple terms?

In theoretical computer science, and specifically computational complexity theory and circuit complexity, TC0 (Threshold Circuit) is the first class in the hierarchy of TC classes. TC0 contains all languages which are decided by Boolean circuits with constant depth and polynomial size, containing o…

Why does TC0 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 TC0?

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 TC0.

Tags

  • Circuit complexity
  • Complexity classes

Keep exploring