Docsity

Computational Complexity Lecture 20: Circuit Complexity and Depth, Study notes of Computational Methods

Toggle sidebar
bg1
CS221: Computational Complexity Prof. Salil Vadhan
Lecture 20: Circuit Complexity
11/08 Scribe: Loizos Michael
Contents
1 Agenda 1
2 Existential Lower Bounds 1
3 Relations to Uniform Complexity 3
4 Circuit Depth 4
1 Agenda
Circuit Complexity
•Existential lower bounds (Reading: Papadimitriou §4.3).
•More relations to uniform complexity (Reading: Papadimitriou §17.2 - second half )
•Circuit depth (Reading: Papadimitriou chapter 15)
2 Existential Lower Bounds
Theorem 1 (Lupanov, Shannon) For each ε > 0and for each sufficiently large n,∃f:{0,1}n→
{0,1}with circuit complexity (over the full basis B2) at least (1 −ε)2n
n.
Proof: We will prove the required result using a counting argument. In particular, we will show
that the number of functions mapping {0,1}nto {0,1}is much larger than the number of ’distinct’
circuits of size m= (1 −ε)2n
n. Note here that we do not need to explicitly ask for the circuit size
to be at most m, since we can always increase the size of circuits by padding with extra gates.
Claim 2 There are 22nfunctions mapping {0,1}nto {0,1}and there are at most O(m)m’distinct’
circuits of size m, for each m > n.
If the claim holds, then log2(#circuits) = m·log2m+O(m). By setting m= (1 −ε)2n
n, we get
that log2(#circuits) = ¡(1 −ε)2n
n¢n+O(2n
n) = 2n−g(n), where g(n)→ ∞, when n→ ∞. Since,
log2(#functions)=2n, it follows that #circuits
#functions ≤2−g(n), where 2−g(n)goes to zero (at a doubly
exponentially rate!), when n→ ∞. We conclude, therefore, that not only there exists a function
with high circuit complexity, but almost all functions have high circuit complexity.
It remains to show that the claim is indeed valid.
1
pf3
pf4
pf5

Partial preview of the text

Download Computational Complexity Lecture 20: Circuit Complexity and Depth and more Study notes Computational Methods in PDF only on Docsity!

CS221: Computational Complexity Prof. Salil Vadhan

Lecture 20: Circuit Complexity

11/08 Scribe: Loizos Michael

Contents

1 Agenda 1

2 Existential Lower Bounds 1

3 Relations to Uniform Complexity 3

4 Circuit Depth 4

1 Agenda

Circuit Complexity

  • Existential lower bounds (Reading: Papadimitriou §4.3).
  • More relations to uniform complexity (Reading: Papadimitriou §17.2 - second half)
  • Circuit depth (Reading: Papadimitriou chapter 15)

2 Existential Lower Bounds

Theorem 1 (Lupanov, Shannon) For each ε > 0 and for each sufficiently large n, ∃f : { 0 , 1 }n^ → { 0 , 1 } with circuit complexity (over the full basis B 2 ) at least (1 − ε) 2 n n.

Proof: We will prove the required result using a counting argument. In particular, we will show that the number of functions mapping { 0 , 1 }n^ to { 0 , 1 } is much larger than the number of ’distinct’ circuits of size m = (1 − ε) 2 n n. Note here that we do not need to explicitly ask for the circuit size to be at most m, since we can always increase the size of circuits by padding with extra gates.

Claim 2 There are 22 n functions mapping { 0 , 1 }n^ to { 0 , 1 } and there are at most O(m)m^ ’distinct’ circuits of size m, for each m > n.

If the claim holds, then log 2 (#circuits) = m · log 2 m + O(m). By setting m = (1 − ε) 2 n n , we get that log 2 (#circuits) =

(1 − ε) 2 n n

n + O( 2 n n ) = 2

n (^) − g(n), where g(n) → ∞, when n → ∞. Since,

log 2 (#f unctions) = 2n, it follows that (^) ##f unctionscircuits ≤ 2 −g(n), where 2−g(n)^ goes to zero (at a doubly exponentially rate!), when n → ∞. We conclude, therefore, that not only there exists a function with high circuit complexity, but almost all functions have high circuit complexity.

It remains to show that the claim is indeed valid.

Proof of claim: The fact that there are 2^2 n functions mapping { 0 , 1 }n^ to { 0 , 1 } is easy to see. Now to verify that there are at most O(m)m^ ’distinct’ circuits of size m, consider the process of specifying a circuit of size m and the number of choices at each step. In such a process we specify:

  • the type of each gate: there are n input variables and each of the m ’internal’ gates can be either one of the |B 2 | binary operations or one of the 2 constants 0 and 1. In total, there can be at most n(|B 2 | + 2)m^ = n · 18 m^ ’distinct’ circuits based on these choices.
  • the connections: the two inputs of each of the m binary gates can be connected to any of the m^2 possible pair of gates. In total, there can be at most (m^2 )m^ ’distinct’ circuits based on these choices.
  • the output gate: any one of the m gates can be the output gate of the circuit. In total, there can be at most m ’distinct’ circuits based on this choice. Taking all the above choices into account, we get n · 18 m^ · (m^2 )m^ · m ’distinct’ circuits. Observe that this is more than what we expect, i.e. O(m)m. This is due to the over counting of possible circuits in our analysis. Indeed, every permutation of the gates yields the same function. That is, the names of the gates do not matter in a circuit, but we still counted the number of circuits as if the gate names were important. Due to this isomorphism of the circuits we actually over counted the actual number of circuits by a factor of m!. Thus, the actual number of ’distinct’ circuits is at most n·^18

m·(m (^2) )m·m m!. By Stirling’s approximation of m!, the result is approximately n·^18

m·O(m)m (m/e)m^ , which is O(m)m^ as needed, when m > n. §

The intuitive explanation of the above theorem is that, a circuit of size m has a small description, while a function does not. So, in order to describe a function we necessarily need large circuits.

As we have commented earlier in the proof of the theorem, the vast majority of all the functions have exponential circuit complexity. Nevertheless, the best known lower bound for an explicit function (in NP) is only 5. 5 n, including the input gates. It is, thus, surprising that there are so many ’hard’ functions, but still a good lower bound for one such function is not known. In fact, it is not even known whether there exists a function in NEXP which has a super-polynomial circuit size (i.e. whether NEXP \ P/poly 6 = ∅). This question is in fact harder than proving that NEXP 6 = BPP, since we know that BPP ⊆ P/poly (see previous lecture).

Despite the above, it is possible that forcing some restrictions on the circuits will eventually provide some bounds on the circuit size of some functions. This would be particularly helpful since it would provide a means of proving that NP 6 = P.

3 Relations to Uniform Complexity

Even though we motivated circuit complexity as a way to prove uniform separations, sometimes circuit lower bounds themselves are useful to us. The following recent theorem shows how strong circuit lower bounds imply the surprising result that randomized computations are not more pow- erful than deterministic ones!

The same ideas can be also applied to prove the second part of the theorem, where instead of SAT, we use QBF as the downward self reducible function.

Theorem 4 has played an important role in recent results which replace the circuit complexity assumption in theorem 3 with weaker uniform assumptions.

4 Circuit Depth

We now move on to examine another complexity measure for circuits. This time we focus our attention on the depth of a given circuit and not its size. The depth of a circuit is just the length of the longest path from some input gate to the output gate. This turns out to be a good complexity measure for parallel computation, where all operations at a given level can be seen as being performed in parallel (since they do not depend on each other).

It is useful to define a special class of circuits, called formulas. Formulas are circuits that exhibit a tree-like structure. That is, every gate (other than the input gates) has an out degree of exactly one. Formulas can be seen as corresponding to logic expressions.

The figure below illustrated one such formula that corresponds to the logical expression (X 1 ∧X 2 )∨ ¬X 1. Notice that input gates can be actually reused, or alternatively duplicated so as to maintain the tree-like structure of a formula.

X 1 X 2 X 1

/^ ¬

/

We can show that for any given function, the depth of the circuit and the size of the formula that correspond to that function are exponentially/logarithmically depended on each other. Specifically, we will prove the following result.

Proposition 6 Let f be a function. If f has a circuit of depth d, then it has a formula of size 2 O(d). Conversely, if f has a formula of size s, then it has a circuit of depth O(log 2 s).

Proof: We will show the first implication. The idea is that we open up all paths so that every reused gate is duplicated. Schematically, this process is illustrated in the figure below.

The result follows immediately by the fact that the in degree of all gates is 2 and thus the subtree rooted at each gate is only duplicated once (i.e. we end up with two copies of that subtree). Starting from the root of the tree and proceeding inductively, it is easy to prove that this idea leads to the construction of a formula of size 2d.

The second implication of this result will be proven in the next lecture.