



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!




CS 172: Computability and Complexity, Spring 2010 S. A. Seshia & O. Etesami
April 14, 2010
Instructions:
This exam is open-book, open-notes. Please turn off and put away electronic devices such as cell phones, laptops, etc.
You have a total of 75 minutes. There are 4 questions worth a total of 100 points. The questions vary in difficulty, so if you get stuck on any question, it might help to leave it for a while and try another one.
Answer each question in the space provided below the question. If you need more space, you can use the reverse side of that page. You can use without proof any result proved in class, in Sipser’s book, or on homeworks, but clearly state the result you are using.
Do not turn this page until the instructor tells you to do so!
For each of the following four questions, state TRUE or FALSE. Justify your answer with a short proof or simple counterexample.
(a) Let A be NP-complete and B be NP-hard. Then B ≤P A.
(b) The set of all Turing-recognizable languages is countably infinite.
(c) If L 1 and L 2 are Turing-recognizable, then L 2 \ L 1 is also Turing-recognizable.
A Random-Access Turing machine (RA-TM) is similar to the standard, single-tape, deter- ministic TM except for its transition function. On a transition, a RA-TM can move its head a finite, but arbitrary distance from its current location. Formally, the transition function is
δ : Q × Γ → Q × Γ × ({L, R} × N)
For example, δ(qi, b) = (qj , c, (L, n)) will cause the RA-TM’s head to move n places to the left (stopping at the left-most cell if the jump would cause the head to move off the tape).
Prove that every RA-TM has an equivalent standard, single-tape, deterministic TM.
Given a graph G = (V, E), an independent set is a set of vertices V ′^ such that V ′^ ⊆ V and no two vertices in V ′^ are connected by an edge in E.
The problem of determining the maximum-size independent set in a graph is known to be NP-complete. Here is the decision version of that problem: IS = {〈G, k〉|G is an undirected graph with an independent set of size k}
In this question, we investigate two related problems. (Be sure to turn the page for the second part!)
(a) Suppose that G is a tree. Consider the following special case of the INDSET problem: IST = {〈G, k〉|G is an undirected tree with an independent set of size k} Show that IST ∈ P.