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

91Ó°ÊÓ

Q48P

Page 1

LetMAX-CLIQUE={(G,k)|alargestcliqueinGisofsizeexactlyk}. Use the result of Problem 7.47 to show that MAX-CLIQUEis DP-complete.

Q4E

Page 26

If Ahasa elements andB hasb elements, how many elements are inA×B? Explain your answer.

Q4E

Page 1

Question: Each of the following languages is the intersection of two simpler languages. In each part, construct DFAs for the simpler languages, then combine them using the construction discussed in footnote 3 (page 46) to give the state diagram of a DFA for the language given. In all parts,∑=a,b.

a.{w|w\kern1pt has  at  least  three  a's  and  at  least  two  b's}b.w|w\kern1pt has  exactly  two  a's  and  at  least  two  b'sc.w|w\kern1pt has  even number  of  a's  and  one or  two  b'sd.{w|w\kern1pt has  even number  of  a's  and eachais followed by at least  one b}e.w|w\kern1pt starts  with  an  a  and  has at most one  bf.w|w\kern1pt has an odd number ofa's  and ends with a  bg.w|w\kern1pt has even length and an odd number ofa's

Q4E

Page 1

Give a formal definition of an enumerator. Consider it to be a type of two-tape Turing machine that uses its second tape as the printer. Include a definition of the enumerated language

Q51P

Page 1

Letxandy be strings and let L be any language. We say that x and y are distinguishable by L if some string Z exists whereby exactly one of the stringsxzandyz is a member of L ; otherwise, for every string z , we have xz∈Lwhenever yz∈Land we say that are indistinguishable by L. If xandyare indistinguishable by L, we write x ≡L y. Show that≡Lis an equivalence relation.

Q52P

Page 1

Show that P is closed under homomorphism iff P = NP.

Q52P

Page 1

Myhill–Nerode theorem. Refer to Problem 1.51 . Let L be a language and let X be a set of strings. Say that X is pairwise distinguishable by L if every two distinct strings in X are distinguishable by L. Define the index of L to be the maximum number of elements in any set that is pair wise distinguishable by L . The index of L may be finite or infinite.

a. Show that if L is recognized by a DFA with k states, L has index at most k.

b. Show that if the index of L is a finite number K , it is recognized by a DFA with k states.

c. Conclude that L is regular iff it has finite index. Moreover, its index is the size of the smallest DFA recognizing it.

Q55P

Page 1

Let G1 be the following grammar that we introduced in Example

2.45. Use the DK-test to show that G1is not a DFG.
R→S|T

S→aSb|ab

T→aTbb|abb

Q56P

Page 1

Let A=L(G1)where is defined in Problem 2.55. Show that A is not a DCFL. (Hint: Assume that A is a DCFL and consider its DPDA P . Modify P so that its input alphabet is {a,b,c}. When it first enters an accept state, it pretends that c's are b's in the input from that point on. What language would the modified P accept?)

Q59P

Page 1

If we disallow ε- in CFGs, we can simplify the DK-test. In the simplified test, we only need to check that each of DK’s accept states has a single rule. Prove that a CFG without ε- passes the simplified DK-testiff it is a DCFG.

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