TC0
In theoretical computer science, and specifically computational complexity theory and circuit complexity, TC 0 (Threshold Circuit) is the first class in the hierarchy of TC classes.[src] TC 0 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, or equivalently, threshold gates.[src] TC 0 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.[src] It is commonly used to model the computational complexity of bounded-depth neural networks, and indeed, it was originally proposed for this purpose.[src]
In theoretical computer science, and specifically computational complexity theory and circuit complexity, TC 0 (Threshold Circuit) is the first class in the hierarchy of TC classes.[src] TC 0 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, or equivalently, threshold gates.[src] TC 0 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.[src] It is commonly used to model the computational complexity of bounded-depth neural networks, and indeed, it was originally proposed for this purpose.[src] For each x \in 2^n , we have x \in L iff C_n(x) = 1 .[src] Equivalently, instead of majority gates, we can use threshold gates with integer weights and thresholds, bounded by a polynomial.[src] A threshold gate with k inputs is defined by a list of weights w_1, \dots, w_k and a single threshold \theta .[src] Upon binary inputs x_1, \dots, x_k , it outputs +1 if \sum_i w_i x_k > \theta , else it outputs -1 .[src] A threshold gate is also called an artificial neuron.[src] Given a Boolean circuit with AND, OR, NOT, and threshold gates whose weights and thresholds are bounded within [-M, +M] , If we also provide the network with negations of binary inputs: \neg x_1, \dots, \neg x_k , then we can convert the network to one that computes the same input-output function using only AND, OR, and threshold gates, with the same depth, at most double the number of gates in each layer, weights bounded within [0, +M] , and thresholds bounded within [-M, +M] .[src] Therefore, TC 0 can be defined equivalently as the languages decidable by some Boolean circuit family C_1, C_2, C_3, \dots such that There exists a polynomial function p , and a constant d .[src] Each C_n 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 \pm p(n) .[src] For each x \in 2^n , we have x \in L iff C_n(x) = 1 .[src] 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.[src] The polynomial bound on weights and thresholds can be relaxed without changing the class \mathsf{TC}^0 .[src] In arithmetic circuit complexity theory, \mathsf{TC}^0 can be equivalently characterized as the class of languages defined as the images of \mathrm{sign} \circ f_n , where each f_n : \{0, 1 \}^n \to \Z is computed by a polynomial-size constant-depth unbounded-fan-in arithmetic circuits with + and × gates, and constants from \{-1, 0, +1\} .[src] ==Complexity class relations== We can relate TC 0 to other circuit classes, including AC 0 and NC 1 as follows: \mathsf{AC}^0 \subsetneq \mathsf{AC}^0[p] \subsetneq \mathsf{TC}^0 \subseteq \mathsf{NC}^1.[src] Whether \mathsf{TC}^0 \subseteq \mathsf{NC}^1 is a strict inclusion is "one of the main open problems in circuit complexity".[src] In fact, it is even open whether \mathsf{TC}^0 \subseteq \mathsf{P/poly} is a strict inclusion![src] This is in some sense unsurprising, since there is no natural proof for \mathsf{TC}^0 \subsetneq \mathsf{P/poly} , assuming that there is a cryptographically secure pseudorandom number generator in \mathsf{TC}^0 , which have been explicitly constructed under the assumption that factoring Blum integers is hard (i.e.[src] requires circuits of size 2^{\mathsf{poly}(n)} ), which is widely suspected to be true.[src] More generally, randomness and hardness for have been shown to be closely related.[src] It is also an open question whether \mathsf{NEXP} \subseteq \mathsf{TC}^0 .[src] Indeed, \mathsf{NEXP} \not\subseteq \mathsf{ACC}^0 was only proven in 2011.[src] Note that because non-uniform \mathsf{TC}^0 and \mathsf{ACC}^0 can compute functions that are not Turing-computable, it is certainly the case that \mathsf{TC}^0 \not\subseteq \mathsf{NEXP} and \mathsf{ACC}^0 \not\subseteq \mathsf{NEXP} .[src] The 2011 result simply shows that \mathsf{ACC}^0 and \mathsf{NEXP} are incomparable classes.[src] The open question is whether \mathsf{TC}^0 and \mathsf{NEXP} are incomparable as well.[src] Note that, while the nondeterministic time hierarchy theorem proves that \mathsf{NP} \subsetneq \mathsf{NEXP} , both complexity classes are uniform, meaning that a single Turing machine is responsible for solving the problem at any input length.[src] In contrast, a \mathsf{TC}^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^{\mathsf{poly}(n)} possible Boolean circuits of bounded depth and \mathsf{poly}(n) size, then checking all 2^n possible inputs to verify that the circuit is correct.[src] It has been proven that if \mathsf{TC}^0 = \mathsf{NC}^1 , then any \epsilon > 0 , there exists a \mathsf{TC}^0 circuit family of gate number O(n^{1+\epsilon}) that solves the Boolean Formula Evaluation problem.[src] Thus, any superlinear bound suffices to prove \mathsf{TC}^0 \neq \mathsf{NC}^1 .[src] ==Uniform TC 0 == DLOGTIME-uniform \mathsf{TC}^0 is also known as \mathsf{FOM} , because it is equivalent to first-order logic with Majority quantifiers.[src] Specifically, given a logic formula that takes x_1, x_2, \dots, x_n Boolean variables, a Majority quantifier M is used as follows: given a formula with exactly one free variable \phi(x) , the quantified Mx \phi(x) is true iff \phi(x_i) is true for over half of i \in 1:n , Integer division (given x, y n -bit integers, find \lfloor x/y\rfloor ), powering (given x an n -bit integer, and k a O(\ln(n)) -bit integer, find x^k ), and iterated multiplication (multiplying n of n -bit integers) are all in DLOGTIME-uniform \mathsf{TC}^0 .[src] It is usually considered the appropriate level of uniformity for \mathsf{TC}^0 , neither too strong nor too weak.[src] Specifically, because P is usually suspected to be stronger than \mathsf{TC}^0 , while DLOGTIME is suspected to be equivalent in strength in some sense, DLOGTIME-uniformity is usually assumed, when uniformity is considered for \mathsf{TC}^0 .[src] The permanent of a 0-1 matrix is not in uniform \mathsf{TC}^0 .[src] Uniform \mathsf{TC}^0 \subsetneq \mathsf{PP} .[src] The functional version of the uniform TC 0 coincides with the closure with respect to composition of the projections and one of the following function sets \{n+m, n \,\stackrel{.}{-}\, m, n\wedge m, \lfloor n/m \rfloor, 2^{\lfloor \log_2 n \rfloor^2} \} , \{n+m, n \,\stackrel{.}{-}\, m, n\wedge m, \lfloor n/m \rfloor, n^{\lfloor \log_2 m \rfloor} \} .[src] Here n \,\stackrel{.}{-}\, m=\max(0,n-m) , n\wedge m is a bitwise AND of n and m .[src] By functional version one means the set of all functions f(x_1,\ldots,x_n) over non-negative integers that are bounded by functions of FP and (y\text{-th bit of }f(x_1,\ldots,x_n)) is in the uniform TC 0 .[src] TC 0 can be divided further, into a hierarchy of languages requiring up to 1 layer, 2 layers, etc.[src] Let \mathsf{TC}^0_d be the class of languages decidable by a threshold circuit family of up to depth d : \mathsf{TC}^0_1 \subset \mathsf{TC}^0_2 \subset \cdots \subset \mathsf{TC}^0 = \bigcup_{d=1}^\infty \mathsf{TC}^0_d The hierarchy can be even more finely divided.[src] For any fixed n , because there are only finitely many Boolean functions that can be computed by a threshold logic unit, it is possible to set all w_1, \dots, w_n, \theta to be integers.[src] Let W(n) be the smallest number W such that every possible real threshold function of n variables can be realized using integer weights of absolute value \leq W .[src] It is known that \frac 12 n \log n - 2n + o(n) \leq \log_2 W(n) \leq \frac 12 n \log n - n + o(n) See for a literature review.[src] Sometimes the class of polynomial-bounded weights and thresholds with depth d is denoted as \widehat{\mathsf{LT}}_d := \mathsf{TC}_d^0 , and \mathsf{LT}_d denotes the class where the weight and thresholds are unbounded ("large weight threshold circuit").[src] This formalizes neural networks with real-valued activation functions.[src] As previously stated, any polynomial-size, depth- d threshold circuit can be simulated uniformly by a polynomial-size majority circuit of depth d+1 .[src] Therefore, \mathsf{TC}_d^0 \subset \mathsf{LT}_d \subset \mathsf{TC}_{d+1}^0 .[src] It has been proven that \mathsf{TC}_2^0 \subsetneq \mathsf{LT}_2 .[src] Allowing the sigmoid activation function \sigma does not increase the power, that is, \mathsf{TC}_d^0 = \mathsf{TC}_d^0(\sigma) for all d \geq 1 , assuming the weights are polynomially bounded.[src] Let C_1, C_2, C_3, \dots be a Boolean circuit family that takes two kinds of inputs.[src] A given circuit C_n takes the deterministic inputs x_1, \dots, x_n , and the random inputs y_1, \dots, y_m , where m = \mathsf{poly}(n) .[src] The random inputs are sampled uniformly over all 2^m possibilities.[src] A language L \subset 2^* is decided polynomial-probabilistically by the family if for each x \in 2^n , if x \in L , then the probability that C_n(x, y) = +1 is at least \frac 12 + \frac{1}{\mathsf{poly}(n)} , and if x \not\in L , then the probability that C_n(x, y) = +1 is at most \frac 12 - \frac{1}{\mathsf{poly}(n)} .[src] Similarly, (feedforward) Boltzmann machines have been modelled as \mathsf{RTC}^0 circuits with boundedly-unreliable threshold units.[src] That is, each threshold unit may, independently at random, with a bounded probability \epsilon , make the wrong output.[src] Sometimes, this class is also called \mathsf{BPTC}^0 , in a closer analogy with BPP.[src] In this definition, the probability that C_n(x, y) = +1 is at least \frac 23 , and if x \not\in L , then the probability that C_n(x, y) = +1 is at most \frac 13 .[src] By the standard trick of sampling many times then taking the majority opinion, any d -layer \mathsf{RTC}^0 circuit can be converted to a (d+1) -layer \mathsf{BPTC}^0 circuit.[src] Analogous to how \mathsf{TC}^0_1 \subset \mathsf{TC}^0_2 \subset \cdots \subset \mathsf{TC}^0 = \bigcup_{d=1}^\infty \mathsf{TC}^0_d , \mathsf{RTC}^0 can also be divided into \mathsf{RTC}^0_1 \subset \mathsf{RTC}^0_2 \subset \cdots \subset \mathsf{RTC}^0 = \bigcup_{d=1}^\infty \mathsf{RTC}^0_d By definition, \mathsf{TC}^0_d \subset \mathsf{RTC}^0_d .[src] Furthermore, since \mathsf{RTC}^0_d \subset \mathsf{TC}^0_{d+1} , there is a full hierarchy: \mathsf{TC}^0_1 \subset \mathsf{RTC}^0_1 \subset \mathsf{TC}^0_{2} \subset \mathsf{RC}^0_{2} \subset \cdots \subset \mathsf{TC}^0 = \mathsf{RTC}^0 Similarly, allowing boundedly-unreliable threshold units, a \mathsf{RTC}^0_d circuit can be converted to a \mathsf{TC}^0_{d+1} circuit by running several copies of the original circuit in parallel, each with a fixed choice for the random inputs (a hardcoded advice), and then taking a Majority over their outputs.[src] That at least one advice exists is proven by Hoeffding's inequality, with essentially the same argument as the median trick.[src] This argument is merely an existence proof, and thus not uniform in a way that matters for \mathsf{TC}^0 , since it gives no algorithm for discovering the advice other than brute-force enumeration.[src] Similarly, \mathsf{RTC}^0 / \mathsf{poly} = \mathsf{TC}^0 / \mathsf{poly} .[src] Let \oplus be defined as the parity function, or the XOR function.[src] Then the following two separations are theorems: \mathsf{RTC}^0_{1} \subsetneq \mathsf{TC}^0_{2} : The PARITY function \oplus is in \mathsf{TC}^0_{2} , but not in \mathsf{RTC}^0_1 .[src] \mathsf{TC}^0_{2} \subsetneq \mathsf{RTC}^0_{2} : The Boolean inner product function (IP) is in \mathsf{RTC}^0_{2} but not in \mathsf{TC}^0_{2} , where \mathrm{IP}_n\left(x_1, \ldots, x_n, x_1^{\prime}, \ldots, x_n^{\prime}\right)=\bigoplus_{i=1}^n \mathrm{AND}\left(x_i, x_i^{\prime}\right) The inner product function falls outside \mathsf{TC}^0_{2} in a precise sense: If the weights of the bottom gates of a threshold circuit of depth 2 computing \mathrm{IP}_n are polynomial, then for any \epsilon > 0 , for all large enough n , \mathrm{IP}_n requires \geq 2^{(1/2 - \epsilon)n} gates.[src] If the weights of the top gate in a threshold circuit of depth 2 computing \mathrm{IP}_n are at most 2^{o\left(n^{1 / 3}\right)} , then the top gate must have fanin at least 2^{\Omega\left(n^{1 / 3}\right)} .[src] If the weights of the bottom gates of a threshold circuit of depth 2 computing \mathrm{IP}_n do not exceed 2^{n / 3} , then the top gate must have fanin at least 2^{\Omega(n)} .[src] It is an open question how many levels the hierarchy has.[src] It is also an open question whether the hierarchy collapses, that is, \mathsf{TC}^0 = \mathsf{TC}^0_{3} .[src] In fact, there is still no exponential lower bound for \mathsf{LT}^0_{2} .[src] Therefore, a fortiori, there is still no exponential lower bound for depth-3 polynomial-size majority circuits.[src] There are exponential lower bounds if further restrictions are imposed on layer 1, such as requiring it to only contain AND gates, or only bounded fan-in gates.[src] The hierarchy for monotone \mathsf{TC}^0 (that is, \mathsf{TC}^0 without Boolean negations) is strongly separated.[src] Specifically, for each d , there has been constructed a language that is decidable by a depth d circuit family using only O(n) AND and OR gates, but requires exponential size to compute by a monotone \mathsf{TC}^0_{d-1} .[src] If the polynomial bound on the number of gates is relaxed, then \mathsf{TC}^0_3 is quite powerful.[src] Specifically, any language in \mathsf{ACC}^0 can be decided by a circuit family in \mathsf{TC}^0_3 (using Majority gates), except that it uses a quasi-polynomial number of gates (instead of polynomial).[src] This result is optimal, in that there exists a function that is computable with 3 layers of \mathsf{AC}^0 , but requires at least an exponential number of gates for \mathsf{TC}^0_2 (using Majority gates).[src] ==References== ==Further reading== ==External links==[src]
85 sentences · 85 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"TC0." encyclopegia.org, 2026, https://encyclopegia.org/wiki/tc0. Accessed 26 November 2026.
Chicago
"TC0." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/tc0.
APA
encyclopegia.org. (2026). TC0. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/tc0
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON