• Aucun résultat trouvé

3 Kleene Star

N/A
N/A
Protected

Academic year: 2022

Partager "3 Kleene Star"

Copied!
2
0
0

Texte intégral

(1)

Final Exam Formal Languages, Computability and Complexity

You can answer in any order that you like, but indicate the question numbers in your answers. The questions are roughly sorted by difficulty except for F questions, which are somewhat harder.

1 Universal Languages and Time Bounds

Place in as low a complexity class as you can.

(a) L:={(M, x) :M(x) halts}

(b) L:={M :∃x M(x) halts}

(c) L:={(M, x, t) :M(x) halts within timet}

(d) L:={(M, t) :∃x M(x) halts within timet}

(e) L:={(M, t) :∀x M(x) halts within timet}

(f) L:={(M,1t) :∀x M(x) halts within timet}

Which languages are complete for their classes? Briefly justify your answers.

2 Relations between Classes

AssumeP=PSPACE. Now consider each of the following statements and say whether it is true, false, or an open question. In case you say true or false, also give a short justification of your answer.

(a) P=NP (b) NP=coNP

(c) P=L (d) NP=EXP

(e) NP=L

(f) NPSPACE=P

3 Kleene Star

The Kleene star of a languageL is the language

L?:={x1· · ·xk:k≥0 andx1, . . . , xk ∈L} .

That is, L? consists of strings formed by concatenating a finite number of elements of L.

(a) Show thatNPis closed under Kleene star.

(b) Show thatP is closed under Kleene star.

4 PCP Variants

Determine which of the following variants of PCP are decidable:

(a) PCP over a unary alphabet.

(b) PCP over a binary alphabet.

F(c) PCP (over an arbitrary alphabet, as usual) but now the goal is determine whether or not there is an infinite sequence i1, i2, . . .such that ti1ti2· · ·=bi1bi2· · ·, where{(ti, bi)}ni=1 is a finite set of tiles.

Final Exam 3 hours 25 January 2018

(2)

Final Exam Formal Languages, Computability and Complexity

5 Randomization and Nondeterminism

A language L∈BP·NPif there exists a polynomial-time deterministic Turing machineM such that x∈L =⇒ Pr

r∈{0,1}m(n)

h

∃y ∈ {0,1}k(n) M(x, y;r) = 1 i

≥2/3 x6∈L =⇒ Pr

r∈{0,1}m(n)

h

∃y ∈ {0,1}k(n) M(x, y;r) = 1 i

≤1/3

where m(n), k(n) ≤ poly(n). A language L ∈ NP·BP if there exists a polynomial-time deterministic Turing machineM such that

x∈L =⇒ ∃y∈ {0,1}k(n) Pr

r∈{0,1}m(n)[M(x, y;r) = 1]≥2/3 x6∈L =⇒ ∀y∈ {0,1}k(n) Pr

r∈{0,1}m(n)

[M(x, y;r) = 1]≤1/3

wherem(n), k(n)≤poly(n). Show that

NP·BP⊆BP·NP.

6 Separation via Closure

For a languageL⊆Σ? and a function f : Σ? −→Σ?, let

Lf :={x∈Σ? :f(x)∈L}.

We say that a complexity class is closed under (polynomial) composition if for any L in the class and any polynomial-time computable functionf it is the case that languageLf is also in that class.

For a language A, let A]:= {x0|x|2−|x| :x∈A} be the language consisting of elements x of Aappended with|x|2− |x|zeros.

(a) Show thatNPis closed under composition.

(b) Show that ifA∈ SPACE(n2) thenA]∈SPACE(n).

(c) Show thatSPACE(n) isnot closed under composition.

(d) Conclude thatNP6=SPACE(n).

7 NP-Completeness

CLIQUE-COVER is the following problem:

INPUT: A graphG= (V, E) and a positive integer K ≤ |V|;

QUESTION: Can the vertices of G be partionated into k ≤K disjoint sets V1, . . . , Vk such that for every i= 1, . . . , k the subgraph induced by Vi is a complete graph?

Show that CLIQUE-COVER isNP-complete.

8 Bonus Question: Sometimes Space = Time

Show that there exists a functionT(n)≥n such thatDTIME(T(n)) =DSPACE(T(n)).

Final Exam 3 hours 25 January 2018

Références

Documents relatifs

Please attach a cover sheet with a declaration http://tcd-ie.libguides.com/plagiarism/declaration confirming that you know and understand College rules on plagiarism. Please put

Please attach a cover sheet with a declaration http://tcd-ie.libguides.com/plagiarism/declaration confirming that you know and understand College rules on plagiarism?. Please put

The differential diagnosis of BP includes other blister- ing disorders such as cicatricial pemphigoid, epidermol- ysis bullosa acquisita, linear immunoglobulin A bullous

3,4 The noninflammatory presentation is caused by ectothrix dermatophytes (eg, M audouinii, M canis, M canis subsp distortum, M ferrugineum, Microsporum gypseum,

A speckled lentiginous nevus (SLN), or nevus spilus (from the Greek word spilos, meaning spot), clinically appears as a hyperpigmented macule or patch containing scat- tered,

Although the cutaneous lesions might clinically resemble those of PXE-like papillary dermal elastolysis, there are usually associated ophthalmic (angioid streaks) or

First reported in the literature in 1930, tumid lupus ery- thematosus (LE) is an uncommon variant of chronic cutaneous LE; it is characterized by multiple

2 However, coexistence of lichen nitidus and tiny pap- ules of lichen planus in the same patient is possible, and the lesions might be indistinguishable from one another.. The