• Keine Ergebnisse gefunden

Complexity Theory

N/A
N/A
Protected

Academic year: 2022

Aktie "Complexity Theory"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Martin Ziegler Distributed on 2011-11-18

Carsten R¨osnick Solutions to be submitted by 2011-11-24 14h25

Complexity Theory

WS 2011/2012, Exercise Sheet #4

EXERCISE 10:

Recall the problems3SATandVCmentioned in the lecture.

a) ProveVC4pSATdirectly, i.e. without invoking the Cook-Levin Theorem.

b) Argue: every vertex cover of a 2-clique must contain at least one vertex; every vertex cover of a 3-clique must contain at least two vertices.

c) Prove:3SAT4pVC.

Hint: The following drawing illustrates a reduction mapping an instanceΦ= (A∨AB)∧(¬A∨

¬B∨ ¬C)∧(¬A∨B∨C)of3SAT to an instance(G,k)ofVCwith k :=#variables+2·#clauses.

EXERCISE 11:

For a language A⊆Σ, its Kleene-star A := {a¯1a¯2· · ·a¯n|n∈N0,a¯iA}is the language consisting of all concatenations of finitely many words from A.

a) Discuss and compare the two different meanings “Σ” can have. What is A

? b) Prove thatPis closed under

i) binary union, i.e., A,B∈P⇒AB∈P ii) intersection, i.e. A,B∈P⇒AB∈P iii) and complement, i.e. A∈P⇒Σ\A∈P.

One can (but you don’t need to) show thatPis also closed under Kleene-star.

c) ProvePSPACEclosed under i) union, ii) intersection, iii) complement, iv) Kleene-star.

d) Prove that alsoNPis closed under union, intersection, complement, and Kleene-star.

e) Demonstrate that the complements of languages inNPare precisely those of the form x¯∈Σ:∀y¯∈Σ≤|x|¯k:hx,¯ yi ∈¯ K , K∈P, k∈N.

(2)

EXERCISE 12:

A nondeterministic Turing maschine (NTM)N= (Q,Σ,Γ,δ)has a transition relation

∆ ⊆ (Q\ {q,q+})×Γ

× Q×Γ× {L,N,R}

.

A transition (q,a)→(p,b,D)with D∈ {L,R,N} is valid if (q,a,p,b,D)∈∆. A computation of N is a sequence of configurations such that each successor arises from its predecessor via a valid transition.

N accepts an input ~w if there exists a computation of N starting with configuration (s, ~w) and leading to a configuration with accepting state.

Naccepts the language L⊆Σif it accepts precisely those inputs from L.Ndecides L if, in addition, every computation ofNterminates.

The run time TN(~w)on~w is the maximum length of all computations ofNon input~w; similarly for space SN(~w).

a) Explain why (and how) a DTM can be considered as a NTM.

Describe a NTM deciding Boolean satisfiabilitySATwithin polynomial time.

b) Sketch the set of all possible computations of a NTM on fixed input~w as a tree. Bound its degree: how many successors can each node have at most?

Argue that any NTM can be converted, possibly with a linear slow-down, into an equiva- lent one having at most two possible successor configurations in each step, i.e. such that Card{(p,b,D):(q,a,p,b,D)∈δ} ≤2 holds for all qQ and a∈Γ.

c) Construct to any (multi-head) NTMNa (multi-head) DTMMsimulatingNwith TM(n) ≤ 2O(TN(n)), SM(n) ≤ O TN(n) +SN(n)

.

d) Let p∈N[N]be a polynomial and L⊆Σdecidable in deterministic timeO p(n)

. Describe a NTM deciding Lpin polynomial time, where

Lp :=

~x∈Σ:∃~y∈Σp(|~x|):h~x,~yi ∈L .

e) Conversely suppose K is decidable by a NTM in polynomial time. Prove that there exists p∈N[N]and a langauge L decidable in deterministic polynomial time such that K=Lp.

Referenzen

ÄHNLICHE DOKUMENTE

Carsten R¨osnick Solutions to be submitted by 8.12.2011 14h25.

Prove: In every circuit of polynomial (why?) size, these gates can be replaced by their binary counterparts while the size grows at most by a constant factor and depth by at most

Prove that the following problem lies in

BubbleSort: O(n²) comparisons and copy instr.s QuickSort: typically O(n·log n) steps.. but O(n²) in

«Das Design von DIAMOND ist zwar interessant, im wirklichen Leben würde aber niemand einen Step- down zu einem H 2 -Antagonisten und womöglich zu einem Antazidum vollzie- hen, wenn

Institut für Angewandte Informa- tionsverarbeitung und Kommunika- tionstechnologie der TU Graz Dipl.lng. Günther GETZINGER Interuniversitäres

This sam ple only showed th e intensive signal w ith axial sym m etry represented on Fig.. All chemicals used were of an aly

- ebenfalls Verminderung der Leistungsverluste durch mehrphasige Abwärtswandler - Möglichkeit Diode durch weiteren Transistor zu ersetzen --> Synchronwandler, je nach Wahl