• Keine Ergebnisse gefunden

Circuits: Depth and Size

N/A
N/A
Protected

Academic year: 2022

Aktie "Circuits: Depth and Size"

Copied!
7
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Martin Ziegler 84

Complexity Theory

Circuits: Depth and Size

y

0

, y

1

, y

2

, …, y

m-1

∨ ∧

¬

x

0

, x

1

, x

2

, …, x

n-1

… ∨

¬

∨ … ∧

¬

∨ ∧ …

¬

Gates ∨ , ∧ , ¬ are universal unbounded fan-out

fan-in: binary/unary N-ary: simulate

in depth O(log N)

• n inputs, m outputs

• depth d ⇒ size ≤ m·2

d

• If sorted topologically, evaluation on a TM

in time O(size)

… … … …

(2)

Martin Ziegler 85

Complexity Theory

evaluation on a TM in time poly(size)

Uniformity

Each circuit C has a fixed number of inputs

for deciding L{0,1}*, consider a family (Cn) {1 : n= 〈M〉 for terminating TM M } undecidable

to TM, but decidable by some family of circuits:

F. Meyer auf der Heide (1984): knapsack can be decided by circuit family Cn of polynom.size

New circuit for each n: nonuniform algorithm Def: Call family Cn of circuits uniform

if some logspace-DTM can, on input 1, output 〈Cn

(sorted topologically)

(3)

Martin Ziegler 86

Complexity Theory

n inputs, m outputs

Circuit vs. Turing Complexity

Can evaluate a given circuit C on a TM in time O(size) once sorted topologically and in space O(m+depth):

for each gate on level d recursively evaluate its 2

predecessors on levels<d

Can simulate a given TM M with input x on a circuit

of depth O(SM(|x|)²

)

Reachability + Matrix Powering

of size O

(

TM(|x|)²

)

y0, y1, y2 , …, ym-1

¬

x0, x1, x2 , …, xn-1

¬

¬ ¬

size ≈ seq. time, depth ≈ space

: next slide

(4)

Martin Ziegler 87

Complexity Theory

NC NC

2

P P P

P -completeness

Reminder: Every ANL NL P P can be solved in

parallel time O(log²n) on polynomial size circuits.

B ∈ P called P P - - hard hard if A

L

B holds for every A ∈ P .

CircuitVal := { 〈 C,x: Circuit C evaluates to true on input assignment x }

Theorem: CircuitVal is P -complete.

∈ P

P -vollständige Probleme lassen sich vermutlich nicht effizient parallelisieren.

Exercise

(5)

Martin Ziegler 88

Complexity Theory

Complexity and Cryptography

A Public Public - - Key Key System System with key-pair (e,d)

consists of two functions E=E(e,x) and D=D(d,y) such that D ( d,E(e,x) ) =x holds for all x. RSA RSA

Call f: Σ * → Σ * a one one - - way way function function if

i) injective and |x|

k

|f(x)| |x|

1/k

for some k ii) computable in polynomial time (i.e. f ∈ FP )

iii) but f

-1

∉ FP

e d

x x

y

e

f

-1

∈ FNP

encrypt with public key e, decrypt with private key d.

impossible if

P = NP !

E(e,x) D(d,y)

(6)

Martin Ziegler 89

Complexity Theory

One-Way Functions and UP UP UP UP UP UP UP UP

Definition: Call a NTM unambiguous if, for any input x, it has at most one accepting computation.

UP = {languages accepted by unambiguous polytime NTMs}

Theorem: P ≠ UP iff one-way functions exist.

Proof: a) For one-way f define L := { (x,y) | zx: f(z)=y } Then L

UP

.

binary search with polynomially many queries for L:

b) Let L

UP \ P

be decided by unambiguous NTM U.

For x an accepting computation of U on y, let f(x):=1y.

For other arguments let f(x):=0x.

This is one-way!

Call f:Σ*→Σ* a one-one-wayway functionfunction if injective and |x|k|f(x)| |x|1/k and f

FP (⇒ f

-1

∈ FNP )

but f -1

FP

P ⊆ UP ⊆ NP

And y→f -1(y) can be evaluated using

L

P

(7)

Martin Ziegler 90

Complexity Theory

Issues with Cryptographic Complexity

Call f:Σ*→Σ* a one-one-wayway functionfunction if injective and |x|k|f(x)| |x|1/k and f

FP (⇒ f

-1

∉ FNP )

but f -1

FP

Definition: Call a NTM unambiguous if, for any input x, it has at most one accepting computation.

UP = {languages accepted by unambiguous polytime NTMs}

Theorem: P ≠ UP iff one-way functions exist.

P ⊆ UP ⊆ NP

• It might be

P = UP ≠ NP

• No complete problem known for

UP

• worst-case complexity:

f

might be efficiently invertible on many practical inputs

• randomized algo- rithms are not deter- ministic yet practical

Cannot eff.

check whether given NTM is

unambiguous

Referenzen

ÄHNLICHE DOKUMENTE

Da das gelbe und das kleine violette Dreieck ähnlich sind (gleiche Winkel) und beide Dreiecke bei einer nur kleinen Verschiebung in etwa ähnlich zum rechtwinkligen Drei- eck ABC,

Der Flächeninhalt zwischen den beiden vertikalen Schnittgeraden (in der Abbildung gelb) soll gleich der Summe der Flächeninhalte der beiden äußeren Teile (rot)

Edité par la Station fédérale de recherches en production végétale de Changins (N. Delabays)©AMTRA Liste des herbicides homologués en arboriculture en

das haben wir aber bereits bewiesen, natürlich ebenfalls mit

consists of two functions E=E(e,x) and D=D(d,y) such that D ( d,E(e,x) ) =x holds for all x.. Martin

[r]

Prove the following generalization of

[r]