

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CSE 200 Final Exam Due Wed. June 13 at 11:59 PM (OK, I won’t actually check until I get in in Thursday morning. But all exams must be turned in before I arrive in my office.)
Answer four out of five questions with an informal, but complete, proof. You may not discuss this exam with anyone except myself and Fjola, whether taking the course or not. Each question has equal weight, but some are more difficult than others. You may cite without proof any result from the Arora-Barak or Sipser text or proved in class. In particular, you can use without proof the N P - completeness of any problem proved N P -complete in class, in the two texts, or on the homeworks, including: SAT, 3-SAT, Independent Set, Clique, Vertex Covering, 3-coloring, Hamiltonian Circuit, and Subset Sum. However, you may not use the list of N P -complete problems in the appendix of Garey and Johnson without proof. If you turn in all five, the hardest one to grade will be omitted.
Computability Let x ◦ y denote the concatenation of strings x and y. For a language L ∈ { 0 , 1 }∗, let pref (L) = {x ∈ { 0 , 1 }∗|∃y ∈ { 0 , 1 }∗, x ◦ y ∈ L}. Say that a class C is closed under prefixes if whenever L ∈ C, then pref (L) ∈ C. Is the class of recursive (aka computably decidable) lan- guages closed under prefixes? The class of R.E. (aka computably enumer- able) languages?
NP-Completeness: Modular equations Prove that the following problem is N P -complete:
Problem: Boolean solution for mod-5 equations. Instance: A set of m equations E 1 , , ..Em in n variables x 1 , ...xn, where each equation Ej is of the form
∑i=n i=1 ai,j^ xi^ =^ cj^ (mod5) where the ai,j , cj ∈ { 0 , .. 4 }. Solution space: A Boolean value bi ∈ { 0 , 1 } for for each xi. Constraints: Each equation is true for the assignment, i.e., (
i ai,j^ bi)mod5 = cj for each j. Objective: Decide whether there is a Boolean solution meeting the con- straints.
NP-Completeness: Path with Minimum Distinct Labels Prove that the following problem is N P -complete:
Problem: Path with Minimum Distinct Labels Instance: An directed graph G, a set of labels L, and a label l(e) ∈ L for each edge e. A start node s ∈ V and a finish node t ∈ V. A budget B. Solution space: A path p from s to t in G.
Objective function: Minimize the number of distinct labels in p, i.e., minimize |{l(e)|e ∈ p}|. Objective: Decide whether there is a path that uses at most B labels.
Circuits and the polynomial-time hierarchy: Remember, EXP = ∪kT IM E(2n
k ), and P/poly is the set of functions with polynomial-sized circuit families. Prove the following theorem of Karp and Lipton: if EXP ⊆ P/poly, then EXP = Σp 2. (Hint: define a new language L′^ in EXP so that whether (x, i, T ) ∈ L′ codes the i’th cell of the configuration of an EXP machine on input x at time t. Use L′^ ∈ P/poly to put L in Σp 2. )
Space complexity Show that P P SP ACE^ = N P P SP ACE^.