• Keine Ergebnisse gefunden

In the lecture we considered circuits with Fan-In bounded by 2

N/A
N/A
Protected

Academic year: 2021

Aktie "In the lecture we considered circuits with Fan-In bounded by 2"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

WS 2016/2017 11.01.2017 Exercises to the lecture

Complexity Theory Sheet 9 Prof. Dr. Roland Meyer

Dr. Prakash Saivasan Delivery until 17.01.2017 at 10h

Exercise 9.1 (Unbounded Fan-In)

Letgbe a gate in a circuit. TheFan-Inofgis the in-degree ofg, the number of incoming edges. A circuit has Fan-In bounded byk∈N if for any gate in the circuit, the Fan-In is bounded byk. In the lecture we considered circuits with Fan-In bounded by 2. This exercise shows that we can always restrict to this case:

LetCbe a circuit withninput variables and unbounded Fan-In. Moreover, letsize(C) =s and depth(C) =d. Show that there is a circuit C0 that has Fan-In bounded by 2 and

• C0(x) =C(x) for all inputs x,

• size(C0)∈ O(s2) and

• depth(C0)∈ O(d·log s).

In particular, ifs(n) is a polynomial andd(n) is a constant, we get:depth(C0)∈ O(log n).

Hint: Gates of Fan-In greater than2 must be replaced. How can you do this ? You also need a bound for the maximal Fan-In of a gate in C.

Exercise 9.2 (Addition with parallel carry computation)

In this exercise we want to solve theaddition problemusing circuits:

Input:2n variables a1, . . . , an and b1, . . . , bn, the binary representation of two natural numbersaand b.

Output: n+ 1 variables s1, . . . , sn+1, the binary representation ofs=a+b.

A first approach to this problem would use full adders. A full adder for the i-th bits would computeai+bi+ci, whereci is the carry, and it would output the sum bit and a new carry bit. This new carry bit could then be used as input for the full adder for the (i+ 1)-st bits. This circuit would have depthO(n). We want to do better:

a) Construct a circuit Gi with unbounded Fan-In that computes the i-th carry bitci and has sizeO(i) and constant depth.

Hint: In contrast to the circuit described above, the computation of ci should not depend on ci−1. Note that ci is 1 if and only if there is a position j < i, where the carry is generated and propagated to position i. Construct a Boolean formula for this condition - this may also depend on a1, . . . , ai−1 and b1, . . . , bi−1. Then transform the formula into a circuit.

(2)

b) Use Part a) to construct a circuit for the addition problem that has sizeO(n2) and constant depth.

c) Conclude that there is a circuit of Fan-In bounded by 2 that solves the addition problem and has polynomial size and logarithmic depth.

Exercise 9.3 (Logspace reductions and the class NC)

Let A, B be two languages so that A≤logm B andB ∈NC. Show that in this case, also A is inNC.

Delivery until 17.01.2017 at 10h into the box next to 34-401.4

Referenzen

ÄHNLICHE DOKUMENTE

Of- ten one can assume that the position wave function is an eigenfuntion of angular mo- mentum, if in addition the radial part of the wave function is the same for all three

Show that, as a consequence of the boundary condition, the energies are quantized and give an expression for the

In this exercise we want to show that the classical “Łoś-Tarski Theorem” does not hold if we restrict to finite structures. Recall that this theorem says the following: for a

Build a series or parallel circuit of two resistors and measure matching values of U and I...

In the lecture we considered (among other things) the LP-relaxation for sub- modular binary Energy Minimization problems.. Now, consider it for arbitrary binary

Gel electrophoresis of the products of an in vivo 35SO24- pulse (1) and chase (2) labelling experiment carried out with Volvox spheroids at the stage of early

Organizarea contabilităţii de gestiune şi calculaţiei costurilor pe baze ştiinţifice în întreprinderile din industria fierului şi oţelului asigură premisele pentru

Finally we can fit a congruent yellow isosceles triangle on the other side of the red equi- lateral triangle (fig... 6: