CMPSCI 401: Theory of Computation
Final Exam, Spring 2010
David Mix Barrington
18 May 2010
Directions:
- Answer the problems on the exam pages.
- There are eight problems
for 125 total points.
Actual scale is A = 102, C = 65.
- If you need extra space use the back of a page.
- No books, notes, calculators, or collaboration.
- The first four questions are true/false, with five points for the correct
boolean answer and up to five for a correct justification of your answer --
a proof, counterexample, quotation from the book or from lecture, etc. -- note
that there is no reason not to guess if you don't know.
Q1: 10 points
Q2: 10 points
Q3: 10 points
Q4: 10 points
Q5: 10 points
Q6: 30 points
Q7: 20 points
Q8: 25 points
Total: 125 points
The following formal languages are each used in one or more problems:
- TWO-CLIQUE is the set of all pairs (G, k) where G is an
undirected graph, k is a positive integer, and G includes two sets of
vertices A and B such that (1) A ∩ B = ∅, (2) A and B each
have exactly k vertices, and (3) both A and B are cliques. (A clique is a
set of vertices where there is an edge between every pair of distinct vertices
in the set.)
- NP-PATH is the set of all triples (G, s, t) where G is a directed
graph, s and t are vertices in G, and it is possible for a nondeterministic
Turing machine to choose (guess) a path from s to t in G in polynomial time.
- ANFA is the set of pairs (N, w) where N is an NFA, w is a
string over the alphabet of N, and w ∈ L(N).
- ALINSPACE is the set of triples (M, x, 1s) such
that M is a one-tape deterministic Turing machine (with
tape alphabet {0, 1, blank}), x is a string over the input alphabet of
M, and M accepts x using at most s cells of space. Note that here
"1s" denotes a string of s ones, so that the length of this string
is s.
- UNARY-PATH is the set of all strings of the form
a1bi1ai1bi2ai2bi3...aik-1bikaikb2
where k, i1, i2, ..., ik are all positive
integers.