• Keine Ergebnisse gefunden

Complexity Theory

N/A
N/A
Protected

Academic year: 2022

Aktie "Complexity Theory"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Martin Ziegler Distributed on 1.12.2011

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

Complexity Theory

WS 2011/2012, Exercise Sheet #6

EXERCISE 15:

Prove:

a) EveryPSPACE-hard problem is alsoNP-hard.

b) If somePSPACE-complete problem belongs toNP, it followsNP=PSPACE.

c) If everyNP-hard problem isPSPACE-hard, it followsNP=PSPACE.

Let coNPdenote the class of all problems whose complement belongs toNP; cmp. Exercise 11e).

d) Define formally “coNP–hard” and “coNP–complete”, then prove:

e) The two classes of problemsNP–complete and coNP–complete, respectively, are either dis- joint or coincide.

A problem A is polynomial-space reducible to B if there exists a total function f :{0,1}→ {0,1} computable in polynomial space such that~xAf(~x)B.

f) Prove: A∈PSPACEis polynomial-space reducible to every /0(B.

EXERCISE 16:

Recall the two player gameGraphGameon directed graphs from the lecture and the question for a winning strategy.

a) Prove: Either the first or the second player has a winning strategy.

Which properties of the game have you used?

b) Describe and analyze a recursive algorithm deciding within polynomial space the truth of a given quantified Boolean formula.

c) ProveGraphGame∈PSPACE.

EXERCISE 17:

Let#SAT denote the function problem of calculating, given a CNF formula, how many satisfying it has. For a nondeterministic Turing Maschine M and input ¯x∈Σ, write #M(x)¯ for the number of accepting computations of M on ¯x. Furthermore

#P :=

fM

M polynomial-time NTM, fM→N0, x¯7→#M(x)¯ a) Prove that every f ∈#Pcan be computed within polynomial space.

b) Define “#P–hard” and “#P–complete”.

Which notion of reduction is appropriate for such counting problems?

c) Prove:#SATis #P–complete. (Hint: Proof of Cook-Levin.) How about#3SAT?

Referenzen

ÄHNLICHE DOKUMENTE

So in order to be able to even read such a reply, we have to consider as ‘polynomial’ a running time bound that depends on both n and |ψ|.. The former being an integer and the latter

Log-cost model: each instruction costs Θ(k) time, where k is the number of bits of the operands. Typical instruction set:. load, store, goto, branch on zero, add, subtract,

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

Construct (and prove correctness of) an explicit polynomial-time reduction ILP4 p D IOPHANT. ). b) Prove that the following greedy algorithm produces an approximation of

What is its

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

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

d) Describe a straight-line program over S calculating the sum of m univariate rational functions of degree (of both numerator and denominator) < n. What length do