Chapter 0: Introduction
Q20P
We generally believe that PATH is not NP-complete. Explain the reason behind this belief. Show that proving PATH is not NP-complete would prove P ≠ NP
Q20P
Prove that an oracle C exists for which .
Q20P
Prove that there exists an undecidable subset of .
Q21E
Q21P
Let Give a CFG generating the language of strings with twice as many . Prove that your grammar is correct.
Q21P
Let . Show that AMBIGCFG is undecidable. (Hint: Use a reduction from PCP. Given an instance
of the Post Correspondence Problem, construct a CFG Gwith the rules
where a1,...,ak are new terminal symbols. Prove that this reduction works.)
Q21P
A k-query oracle Turing machine is an oracle permitted to make at most k queries on each input. A k-query oracle Turing machine ‘M’ with an oracle for A is written . Define to be the collection of languages that are decidable by polynomial time k-query oracle Turing machines with an oracle for ‘A’.
- Show that
- Assume that . Show that .
Q21P
Show how to compute the descriptive complexity of strings K(x) with an oracle for ATM.
Q22E
In certain programming languages, comments appear between delimiters such as #and . Let Cbe the language of all valid delimited comment strings. A member of Cmust begin with and end with but have no intervening . For simplicity, assume that the alphabet for Cis .
a. Give aDFA that recognizes C.
b. Give a regular expression that generates C.
Q22P
Let Show that is a context-free language.