Chapter 13: Q44E (page 877)
In Exercises 43–49 find the language recognized by the given nondeterministic finite-state automaton.
Short Answer
The result is\({\bf{L(M) = \{ \lambda }},0,1{\bf{\} }} \cup {\bf{\{ 1\} \{ 1\} *\{ 0\} }}\).
Chapter 13: Q44E (page 877)
The result is\({\bf{L(M) = \{ \lambda }},0,1{\bf{\} }} \cup {\bf{\{ 1\} \{ 1\} *\{ 0\} }}\).
All the tools & learning materials you need for study success - in one app.
Get started for freeFind a phrase-structure grammar for each of these languages.
a) the set of all bit strings containing an even number of 0s and no 1s
b) the set of all bit strings made up of a 1 followed by an odd number of 0s
c) the set of all bit strings containing an even number of 0s and an even number of 1s
d) the set of all strings containing 10 or more 0s and no 1s
e) the set of all strings containing more 0s than 1s
f) the set of all strings containing an equal number of 0s and 1s
g) the set of all strings containing an unequal number of 0s and 1s
Determine whether each of these strings is recognized by the deterministic finite-state automaton in Figure 1.
a)010b) 1101 c) 1111110d) 010101010
Use the set of productions to show that each of these sentences is a valid sentence.
a) The happy hare runs.
b) The sleepy tortoise runs quickly.
c) The tortoise passes the hare.
d) The sleepy hare passes the happy tortoise.
Give production rules in Backus–Naur form for the name of a person if this name consists of a first name, which is a string of letters, where only the first letter is uppercase; a middle initial; and a last name, which can be any string of letters.
Find a phrase-structure grammar that generates each of these languages.
\({\bf{a)}}\)the set of bit strings of the form \({{\bf{0}}^{{\bf{2n}}}}{{\bf{1}}^{{\bf{3n}}}}\), where \({\bf{n}}\) is a nonnegative integer
\({\bf{b)}}\)the set of bit strings with twice as many \({\bf{0's}}\) as \({\bf{1's}}\)
\({\bf{c)}}\)the set of bit strings of the form \({{\bf{w}}^{\bf{2}}}\), where \({\bf{w}}\) is a bit string
What do you think about this solution?
We value your feedback to improve our textbook solutions.