DOC PREVIEW
UVA CS 302 - Final Exam Preview

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

UVa - cs302: Theory of Computation Spring 2008Final Exam PreviewThe goal of the final exam is to evaluate how well you understand and can ap-ply the key ideas from the course. This handout is a “sneak preview” of someof the questions you might encounter on the final exam (Saturday, May 3, 9am-noon). The actual questions on the final may not match these questions exactly(so it would not be wise to attempt to memorize exact answers to these questions),but thinking about these questions should be useful preparation for the final exam.Until the final starts, you may discuss these questions with anyone you want, andmay consult any resources you want.During the final exam, you will not be permitted to use any materials. Unlikeprevious exams, you will not be permitted to use any notes during the final exam.Problem 1: Short Answers. (20) For each question, provide a correct, clear, precise,and concise answer from the perspective of a theoretical computer scientist.a. [4] What is a language?b. [4] Why is a Turing Machine a good model of actual computers?c. [4] Why is a Turing Machine a bad model of actual computers?d. · · ·· · ·Problem 2: Zero, One, Infinity. (20)For each question, answer 0, 1 or Infinity to indicate the value of the describedentity. A correct answer receives full credit without any explanation. A wronganswer with a good explanation may receive some partial credit.a. [2] Assuming P = NP, the number of NP-Complete problems that are not in P.b. [2] Assuming P = NP, the number of NP-Hard problems . . ..c. [2] The number of strings that are in the language described by the context-freegrammar G (S is the start variable):S → 0AS → 1AA → Sd. · · ·Final Exam Preview-1Problem 3: Drawing Classes. (20)a. [10] Assuming P 6= NP, draw a diagram that shows the following computabilityand complexity classes: (1) TIME(n2), (2) P, (3) Turing-decidable, (4) NP-Complete,(5) TIME(1), (6) Regular, . . ..b. [10] Place points in your diagram representing each of the following languages:(1) ALL = Σ∗(where Σ = {0, 1}), . . ..Problem 4: Hardness Proofs. (30)a. [10] Prove the language A = . . . is not regular.b. [10] Prove the language B = . . . is not decidable.c. [10] Without assuming the HAMPATH problem is NP-Hard, prove the languageLGA(as defined in Problem Set 6 and its comments) is NP-Hard. (You don’t need toshow all the details of the reduction, but you should explain enough of the generalidea of the proof by convincing us that if you had sufficient time you could workout all the necessary details.)Problem 5: Closure. (10+20)a. In The Limits of Quantum Computers (your Spring Break reading), Scott Aaronsonwrites:If we really could build a magic computer capable of solving an NP-complete problem in a snap, the world would be a very different place:we could ask our magic computer to look for whatever patterns mightexist in stock-market data or in recordings of the weather or brain ac-tivity. Unlike with todays computers, finding these patterns would becompletely routine and require no detailed understanding of the sub-ject of the problem. The magic computer could also automate mathe-matical creativity. Given any holy grail of mathematicssuch as Gold-bachs conjecture or the Riemann hypothesis, both of which have re-sisted resolution for well over a centurywe could simply ask our com-puter to search through all possible proofs and disproofs containing upto, say, a billion symbols.Is the claim that a computer that could solve NP-complete problems in polynomialtime could also automate mathematicl creativity correct?b. Consider the ℘ operator defined as . . .. Is the set of regular languages closedunder ℘?c. Is the set of decidable languages closed under ℘?Final Exam


View Full Document
Download Final Exam Preview
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Final Exam Preview and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Final Exam Preview 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?