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

91Ó°ÊÓ

Q1E

Page 25

Examine the following formal descriptions of sets so that you understand which members they contain. Write a short informal English description of each set.

  1. {1,3,5,7,...}
  2. {...,-4,-2,0,2,4,...}
  3. {n|n=2mfor someminN}
  4. {n|n=2mfor someminN, andn=3kfor somekinN}
  5. {w|wis a string of0sand1sandwequals the reverse ofw}
  6. {n|nis an integer andn=n+1}

Q1E

Page 1

Question: Answer all parts for the following DFA and give reasons for your answers.

a.Is<M,0100>∈ADFA?b. Is<M,011>∈ADFA?c. Is<M>∈ADFA?d. Is<M,0100>∈AREX?e. Is<M>∈EDFA?f. Is<M,M>∈EQDFA?

Q1E

Page 1

Question: Answer each part TRUE or FALSE.

a.2n=O(n)b.n2=O(n)·Ac.n2=O(nlog2n)·Ad.nlogn=O(n2)e.3n=2O(n)f.22n=O(22n)

Q20E

Page 1

For each of the following languages, give two strings that are members and two strings that are not members—a total of four strings for each part. Assume the Σ=a,balpha-alphabet in all parts.

a.a*b*b.aba*bc.a*∪b*d.aaa*e.Σ*aΣ*bΣ*aΣ*f.aba∪babg.(ε∪a)bh.(a∪ba∪bb)Σ*

Q20P

Page 1

Let

A/B={w|wx∈aAforsomex∈B}Show that ifAis context free andBis regular, thenA/Bis context free

Q21E

Page 1

Use the procedure described in Lemma 1.60to convert the following finite automata to regular expressions.

Q22E

Page 1

In certain programming languages, comments appear between delimiters such as #and #/. Let Cbe the language of all valid delimited comment strings. A member of Cmust begin with #/and end with #/but have no intervening #/. For simplicity, assume that the alphabet for Cis ∑={a,b,/,#}.

a. Give aDFA that recognizes C.

b. Give a regular expression that generates C.

Q23P

Page 1

Show that A is decidable iff A≤m0*1*.

Q23P

Page 1

Show that the function K(x) is not a computable function.

Q24P

Page 1

Let CNFk= is a satisfiable cnf-formula where each variable appears in at most k places}.

a. Show thatCNF2?P .

b. Show thatCNF3 isNP-complete.

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