Chapter 7: Problem 10
Show that \(A L L_{\mathrm{DFA}}\) is in \(\mathrm{P}\).
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 7: Problem 10
Show that \(A L L_{\mathrm{DFA}}\) is in \(\mathrm{P}\).
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for free
Let \(H A L F-C L I Q U E=\\{\langle G\rangle \mid G\) is an undirected graph having a complete subgraph with at least \(m / 2\) nodes, where \(m\) is the number of nodes in \(G\\}\). Show that HALF-CLIQUE is NP-complete.
Let \(\phi\) be a \(3 \mathrm{cnf}\)-formula. An \(\neq\)-assignment to the variables of \(\phi\) is one where each clause contains two literals with unequal truth values. In other words, an \(\neq\)-assignment satisfies \(\phi\) without assigning three true literals in any clause. a. Show that the negation of any \(\neq\)-assignment to \(\phi\) is also an \(\neq\)-assignment. b. Let \(\neq S A T\) be the collection of \(3 \mathrm{cnf}\)-formulas that have an \(\neq\)-assignment. Show that we obtain a polynomial time reduction from \(3 S A T\) to \(\neq S A T\) by replacing each clause \(c_{i}\) $$ \left(y_{1} \vee y_{2} \vee y_{3}\right) $$ with the two clauses $$ \left(y_{1} \vee y_{2} \vee z_{i}\right) \quad \text { and } \quad\left(\overline{z_{i}} \vee y_{3} \vee b\right), $$ where \(z_{i}\) is a new variable for each clause \(c_{i}\), and \(b\) is a single additional new variable. c. Conclude that \(\neq S A T\) is \(\mathrm{NP}\)-complete.
A cut in an undirected graph is a separation of the vertices \(V\) into two disjoint subsets \(S\) and \(T\). The size of a cut is the number of edges that have one endpoint in \(S\) and the other in \(T\). Let \(M A X-C U T=\\{\langle G, k\rangle \mid G\) has a cut of size \(k\) or more \(\\}\) Show that \(M A X-C U T\) is NP-complete. You may assume the result of Problem 7.26. (Hint: Show that \(\neq S A T \leq_{\mathrm{P}} M A X-C U T\). The variable gadget for variable \(x\) is a collection of \(3 c\) nodes labeled with \(x\) and another \(3 c\) nodes labeled with \(\bar{x}\), where \(c\) is the number of clauses. All nodes labeled \(x\) are connected with all nodes labeled \(\bar{x}\). The clause gadget is a triangle of three edges connecting three nodes labeled with the literals appearing in the clause. Do not use the same node in more than one clause gadget. Prove that this reduction works.)
A triangle in an undirected graph is a 3-clique. Show that TRIANGLE \(\in \mathrm{P}\), where TRIANGLE \(=\\{\langle G\rangle \mid G\) contains a triangle \(\\} .\)
Is the following formula satisfiable? $$ (x \vee y) \wedge(x \vee \bar{y}) \wedge(\bar{x} \vee y) \wedge(\bar{x} \vee \bar{y}) $$
What do you think about this solution?
We value your feedback to improve our textbook solutions.