Download computer theory exam and more Exams Computer Architecture and Organization in PDF only on Docsity!
Qualifier Exam: Computation Theory Computer Science January 6, 2012 Do exactly 6 of the following 8 problems. You must do problem 8. 1. Let 5 be an alphabet and let w be a non-null string in &*. Define the language L,, recursively, as follows. w € Ly, and if s € Ly, then ss® € Ly, where s denotes the reversal of s. Prove that for some choice of w, i) Ly is regular, or ii) Ly is not regular and Ly is context-free, or itt) Ly is not context-free. 2. A useless state in a pushdown automaton is never entered on any input string. Show that the problem of determining whether a pushdown automaton has any useless states is decidable. 3. A queue automaton is identical to a pushdown automaton, except that the auxiliary data structure is a queue rather than a stack, that is, symbols added to the queue are removed in first-in, first-out order rather than last-in, first-out order. Consider the class of languages recognized by queue automata. How does it compare to other established classes of languages (e.g., regular, context-free, recursive, and recursively enumerable)? Justify your answer. 4. (a) Prove that it is undecidable whether a Turing machine M, given input w, enters all of its states. (b) Explain why Rice’s Theorem cannot be used to prove this result. 5. Prove that a language L is decidable iff L can be enumerated in lexicographic order. 6. Compare the classes of problems TIM E(2") and U;, TIM E(2""). Are they equivalent? Justify your answer. 7. Recall that coNP is the set of languages L such that Z € NP. Prove that if NP 4 coNP, then P # NP.