/*! 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} Free solutions & answers for Introduction to Theory of Computation Chapter 7 - (Page 3) [step by step] 9781133187790 | 91Ó°ÊÓ

91Ó°ÊÓ

Q43P

Page 327

For a cnf-formula ∅ with m variables and cclauses O(cm) , show that you can construct in polynomial time an NFA with states that accept all nonsatisfying assignments, represented as Boolean strings of length m. Conclude that ±Êâ‰²Ó±Ê implies that NFAs cannot be minimized in polynomial time.

Q44P

Page 327

A 2cnf-formula is an AND of clauses, where each clause is an OR of at most two literals. Let . Show that2SAT={ϕ|ϕ is a satisfiable 2CNF formula}. Show that 2SAT∈P.

Q45P

Page 328

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.

Q46P

Page 328

Say that two Boolean formulas are equivalentif they have the same set of variables and are true on the same set of assignments to those variables (i.e., they describe the same Boolean function). A Boolean formula is minimalif no shorter Boolean formula is equivalent to it. Let MIN-FORMULAbe the collection of minimal Boolean formulas. Show that if P = NP,MIN-FORMULA∈P

Q47P

Page 328

The difference hierarchyDiPis defined recursively as

  1. role="math" localid="1664206013824" D1P∈NPand
  2. DiP={A|A=B\CforBinNPandCinDi-1P}.

(Here BC=B∩C.) For example, a language in D2P is the difference of two NP languages. Sometimes D2P is called DP (and may be written DP). Let Z={(G1,k1,G2,k2)|G1hasak1-cliqueandG2doesn'thaveak2-clique}

.Show that Z is complete for DP. In other words, show that Z is in DP and every language in DP is polynomial time reducible to Z.

Q49P

Page 275

Q4E

Page 322

Fill out the table described in the polynomial time algorithm for context-free language recognition from Theorem7.16forstringw=babaandCFGG:

S→RTR→TR|aT→TR|b

Q50P

Page 275

Call a regular expression star-freeif it does not contain any star operations.Then,let

EQSF-REX=(R,S)|RandSareequivalentstar-freeregularexpressions. Show thatEQSF-REX is in coNP. Why does your argument fail for general regular expressions?

Q51P

Page 275

This problem investigates resolution, a method for proving the unsatisfiability of cnf-formulas. Let ϕ=C1∧C2∧…∧Cmbe a formula in cnf, where the Ciare its clauses. Let C=CiCi is a clause of ϕ. In a resolution step, we take two clauses Caand Cbin C, which both have some variable occurring positively in one of the clauses and negatively in the other. Thus, Ca=x∨y1∨y2∨…∨ykand Cb=x¯∨z1∨z2∨…∨zl, where the and are literals. We form the new clause y1∨y2∨…∨yk∨z1∨z2∨…∨zland remove repeated literals. Add this new clause to C. Repeat the resolution steps until no additional clauses can be obtained. If the empty clause ( ) is in C, then declare ϕunsatisfiable. Say that resolution is sound if it never declares satisfiable formulas to be unsatisfiable. Say that resolution is complete if all unsatisfiable formulas are declared to be unsatisfiable.

a. Show that resolution is sound and complete.

b. Use part (a) to show that 2SAT∈P.

Q53P

Page 275

Let A⊆1* 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 ϕ0100be 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?)

Access millions of textbook solutions in one place

  • Access over 3 million high quality textbook solutions
  • Access our popular flashcard, quiz, mock-exam and notes features
  • Access our smart AI features to upgrade your learning
Access millions of textbook solutions in one place

Recommended explanations on Computer Science Textbooks