Homework 11
Last updated: Wed, 1 May 2024 11:39:23 -0400
Out: Wed May 01, 12:00pm EST (noon) Due: Wed May 08, 12:00pm EST (noon)
This assignment continues to explore undecidability, via mapping reducibility, and starts to look at time complexity.
Homework Problems
A Closed Operation for Decidable/Recognizable Languages? (8 + 8 = 16 points)
Practice with Mapping Reducibility (16 points)
Big-O Practice (12 points)
DFA->NFA Running Time (14 points)
README (2 points)
Total: 60 points
Submitting
Submit your solution to this assignment in Gradescope hw11. Please assign each page to the correct problem and make sure your solutions are legible.
A submission must also include a README containing the required information.
1 A Closed Operation for Decidable/Recognizable Languages?
The "Closed" Operation Practice Problem from Homework 3 introduced the \mathrm{NEG} operation.
Prove that Turing-decidable languages are closed under \mathrm{NEG}.
This theorem is needed to complete the undecidability proof in Practice with Mapping Reducibility, part 2, above.
Specifically:Give the if-then statement to be proved,
and then prove it.
Remember that deciders require termination arguments. Also, an Examples Table as shown in class is required to "prove" that a machine recognizes some language.
Now let’s think about whether Turing-recognizable languages are closed under \mathrm{NEG}.
Specifically, answer the following:
Give the If-Then statement that must be proved.
Now sketch out a potential proof by giving a table of Statements and Justifications, where the last statement is the If-Then statement to be proved from above. It should be similar to part 1 above.
You may run into difficulty when trying to work out the Examples Table justification step. Remember that the Examples Table must show all possible combinations of results from all of the Turing machines involved in your answer.
Based on the Examples Table you created, comment on why using the same proof approach as in part 1 won’t work. That is, explain why Turing-recognizable languages might not be closed under the \mathrm{NEG} operation ...
2 Practice with Mapping Reducibility
In lecture, we learned a new way to prove undecidability using mapping reducibility.
creating a computable function between the two languages, and
showing that the appropriate if-and-only-if statement (which itself has two parts) holds for that computable function.
We then started to re-prove undecidability for some previously seen languages. For this problem, you’ll complete what we started for one of them.
Specifically, prove that E_\textsf{TM} is undecidable using mapping reducibility.
understanding the computable function from class,
giving the if-and-only-if statement that must be proved, for there to be a mapping reducibility between these two languages,
and showing that the computable function from class satisfies this if-and-only-if requirement. Don’t forget that proving an if-and-only-if statement requires proving two separate statements. Further, the contrapositive must be used for the reverse direction.
After you’ve established mapping reducibility, complete the undecidability proof. As usual, the proof must be in the form of a Statements and Justifications Table. (You’ll also likely need to use some other theorems from lecture to complete the proof.)
3 Big-O Practice
Answer TRUE or FALSE for each statement below.
For each statement that is TRUE, give a value for c and n_0 that satisfies the inequality in the definition of big-O.
n^{99} = 2^{O(n)}
420^{2n} = 2^{O(n)}
n-420 = O(\log n)
n\log n = O(\log n)
420+n = O(n)
420 = O(n^3)
4 DFA->NFA Running Time
When learning about regular languages, we defined an algorithm \texttt{convert} (in Homework 3) to convert a DFA, e.g., D = (Q_D,\Sigma,\delta_D,q_D,F_D), to an equivalent NFA, e.g., N = (Q_N,\Sigma,\delta_N,q_N,F_N), and we used this procedure in the deciders of several languages.
Compute the running time of the \texttt{convert} algorithm. Express your answer using big-O notation in terms a variable n = |Q_D| representing the number of states in the DFA. Is this a polynomial time algorithm?
Structure your solution according to the components of the DFA. In other words, your solution should say how many steps it takes to compute Q_N from Q_D, how many steps it takes to compute \delta_N from \delta_D, etc., and then add them all together. As another hint, to calculate this runtime, you want to be thinking about the size of each of the computed NFA parts, in comparison to their DFA counterparts.