/*! 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 1) [step by step] 9781133187790 | 91Ó°ÊÓ

91Ó°ÊÓ

Q16P

Page 323

Show that NP is closed under the star operation

Q26P

Page 324

Let ? be a 3cnf-formula. An ≠-assignment to the variables of ? is one where each clause contains two literals with unequal truth values. In other words, an ≠ -assignment satisfies ? without assigning three true literals in any clause.

a. Show that the negation of any ≠ -assignment to ? is also an ≠ -assignment.

b. Let ≠ SAT be the collection of 3cnf-formulas that have an ≠ -assignment. Show that we obtain a polynomial time reduction from 3SAT to ≠ SAT by replacing each clause ci

(y1∨y2∨y3)$$

with the two clauses

(y1∨y2∨zi)and(zi¯∨y3∨b)

Where ziis a new variable for each clause,ci and b is a single additional new variable.

c. Conclude that ≠SAT isNP-complete.

Q29P

Page 325

A coloring of a graph is an assignment of colors to its nodes so that no two adjacent nodes are assigned the same color.

Show that 3COLOR is NP-complete. (Hint: Use the following three subgraphs.)

Q30P

Page 275

Let SET-SPLITTINGcollection of subsets of S, for some k>0, such that elements of S can be colored red or blue so that no Ci has all its elements colored with the same color}. Show that SET-SPLITTINGis NP-complete.

Q40P

Page 327

Show that if P=NP , a polynomial time algorithm exists that takes an undirected graph as input and finds a largest clique contained in that graph. (See the note in Problem 7.38.)

Q41P

Page 327

In the proof of the Cook–Levin theorem, a window is a 2×3rectangle of cells. Show why the proof would have failed if we had used role="math" localid="1664195743361" 2×2windows instead.

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

Q6E

Page 322

Show thatP is closed under union, concatenation, and complement.

Q8E

Page 323

Let CONNECTED={<G>|Gisaconnectedundirectedgraph}.Analyse the algorithm given on page 185 to show that this language is in .

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