Chapter 7: Q25P (page 324)
Let is a satisfiable CNF-formula where each clause contains any number of literals, but at most one negated literal}. Show that .
Short Answer
This situation will be held true for .
Chapter 7: Q25P (page 324)
Let is a satisfiable CNF-formula where each clause contains any number of literals, but at most one negated literal}. Show that .
This situation will be held true for .
All the tools & learning materials you need for study success - in one app.
Get started for freeShow that is closed under the star operation. (Hint: Use dynamic programming. On input , build a table indicating for each whether the substring
Show that is closed under union, concatenation, and complement.
Let be any unary language. Show that if A is NP-complete, then P = NP. (Hint: Consider a polynomial time reduction f from SATto A. For a formula , let be the reduced formula where variables x1, x2, x3, and x4 in are set to the values 0, 1, 0, and 0, respectively. What happens when you apply f to all of these exponentially many reduced formulas?)
Modify the algorithm for context-free language recognition in the proof of Theorem 7.16 to give a polynomial time algorithm that produces a parse tree for a string, given the string and a CFG, if that grammar generates the string.
You are given a box and a collection of cards as indicated in the following figure. Because of the pegs in the box and the notches in the cards, each card will fit in the box in either of two ways. Each card contains two columns of holes, some of which may not be punched out. The puzzle is solved by placing all the cards in the box so as to completely cover the bottom of the box (i.e., every hole position is blocked by at least one card that has no hole there). It represents a card and this collection of cards has a solution}. Show that PUZZLE is NP-complete.
What do you think about this solution?
We value your feedback to improve our textbook solutions.