Americas
Europe
Problem 11
In both parts, provide an analysis of the time complexity of your algorithm. a. Show that \(E Q_{\mathrm{DFA}} \in \mathrm{P}\). b. Say that a language \(A\) is star-closed if \(A=A^{*}\). Give a polynomial time algorithm to test whether a DFA recognizes a star-closed language. (Note that \(E Q_{\mathrm{NFA}}\) is not known to be in \(\mathrm{P}\).)
What do you think about this solution?
We value your feedback to improve our textbook solutions.
For a cnf-formula \(\phi\) with \(m\) variables and \(c\) clauses, show that you can construct in polynomial time an NFA with \(O(\mathrm{~cm})\) states that accepts all nonsatisfying assignments, represented as Boolean strings of length \(m\). Conclude that \(\mathrm{P} \neq \mathrm{NP}\) implies that NFAs cannot be minimized in polynomial time.
Consider the following scheduling problem. You are given a list of final exams \(F_{1}, \ldots, F_{k}\) to be scheduled, and a list of students $S_{1}, \ldots, S_{l} .$ Each student is taking some specified subset of these exams. You must schedule these exams into slots so that no student is required to take two exams in the same slot. The problem is to determine if such a schedule exists that uses only \(h\) slots. Formulate this problem as a language and show that this language is NP-complete.
Show that \(A L L_{\mathrm{DFA}}\) is in \(\mathrm{P}\).
Let \(D O U B L E-S A T=\\{\langle\phi\rangle \mid \phi\) has at least two satisfying assignments \(\\}\). Show that DOUBLE-SAT is NP-complete.
Fill out the table described in the polynomial time algorithm for context-free language recognition from Theorem \(7.16\) for string \(w=\) baba and CFG \(G\) : $$ \begin{aligned} &S \rightarrow R T \\ &R \rightarrow T R \mid \mathrm{a} \\ &T \rightarrow T R \mid \mathrm{b} \end{aligned} $$
The first learning app that truly has everything you need to ace your exams in one place.