/*! 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 0 - (Page 10) [step by step] 9781133187790 | 91影视

91影视

Q37P

Page 1

Let U=\left\{left\langleM,x,\#^{t}\right\rangle\mid\rightNTMMaccepts xwithin steps on at least one branch}. Note thatlocalid="1663241578125" Misn鈥檛 required to halt on all branches. Show thatUisNP-complete.

Q38P

Page 1

Show that if P=NP, a polynomial time algorithm exists that produces a satisfying assignment when given a satisfiable Boolean formula. (Note: The algorithm you are asked to provide computes a function; but NPcontains languages, not functions. The P=NPassumption implies that SATis in P, so testing satisfiability is solvable in polynomial time. But the assumption doesn鈥檛 say how this test is done, and the test may not reveal satisfying assignments. You must show that you can find them anyway. Hint: Use the satisfiability tester repeatedly to find the assignment bit-by-bit.)

Q39P

Page 1

Show that if P=NP , you can factor integers in polynomial time. (See the note in Problem 7.38.)

Q3E

Page 1

Show that if ATBand BTC, thenATC .

Q3E

Page 1

Which of the following pairs of numbers are relatively prime? Show the calculations that led to your conclusions

a.1274and10505b.7289and8029

Q3E

Page 26

LetAbe the set{x,y,z}andBbe the set{x,y}.

  1. IsAa subset ofB?
  2. IsBa subset ofA?
  3. What isAB?
  4. What isAB?
  5. What isAB?
  6. What is the power set ofB ?

Q3E

Page 1

Modify the proof of Theorem 3.16 to obtain Corollary 3.19, showing that a language is decidable if some nondeterministic Turing machine decides it. (You may assume the following theorem about trees. If every node in a tree has finitely many children and every branch of the tree has finitely many nodes, the tree itself has finitely many nodes.)

Q42P

Page 1

Question:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .

MINIMIZE = 鈥淥n input , where M=(Q,,,q0,A) is a DFA:

1.Remove all states of G that are unreachable from the start state.

2. Construct the following undirected graph G whose nodes are the states of .

3. Place an edge in G connecting every accept state with every non accept state. Add additional edges as follows.

4. Repeat until no new edges are added to G :

5. For every pair of distinct states q and r of and every a :

6. Add the edge (q,r) to G if q,a,r,a is an edge of G .

7. For each state q,let[q] be the collection of statesq={rQ|noedge joins q and r in G }.

8.Form a new DFA M'=Q',,',q'0,A'where

Q'={[q]|qQ}(ifq=r,onlyoneofthemisinQ'),'(q,a)=[q,a]foreveryqQanda,q00=[q0],andA0={[q]|qA}

9. Output ( M')鈥

a. Show that M and M' are equivalent.

b. Show that M0 is minimal鈥攖hat is, no DFA with fewer states recognizes the same language. You may use the result of Problem 1.52 without proof.

c. Show that MINIMIZE operates in polynomial time.

Q47P

Page 1

Let =0,1. Let B be the collection of strings that contain at least one 1 in their second half. In other words,

a. Give a PDA that recognizes B

b. Give a CFG that generates B .

Q48P

Page 1

Let. ={0,1}LetC1 be the language of all strings that contain a 1 in their middle third.

Let C2be the language of all strings that contain two 1s in their middle third. So C1={xyz|x,z*andy*1*,where|x|=|z||y|}and C2={xyz|x,z*andy*1*1*,鈥娾赌where|x|=|z||y|}.

a.Show that C1is a CFL.

b. Show thatC2 is not a CFL

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