Chapter 13: Q18E (page 876)
In Exercises 16–22 find the language recognized by the given deterministic finite-state automaton
Short Answer
The result is \({\bf{L(M) = \{ \lambda \} }} \ cup {\bf{\{ }}0{\bf{\} \{ 1\} }}*\)
Chapter 13: Q18E (page 876)
In Exercises 16–22 find the language recognized by the given deterministic finite-state automaton
The result is \({\bf{L(M) = \{ \lambda \} }} \ cup {\bf{\{ }}0{\bf{\} \{ 1\} }}*\)
All the tools & learning materials you need for study success - in one app.
Get started for freeLet \({\bf{G = }}\left( {{\bf{V, T, S, P}}} \right)\) be the context-free grammar with \({\bf{V = }}\left\{ {\left( {\bf{,}} \right){\bf{S,A,B}}} \right\}{\bf{, T = }}\left\{ {\left( {\bf{,}} \right)} \right\}\) starting symbol \({\bf{S}}\), and productions \({\bf{S}} \to {\bf{A,A}} \to {\bf{AB,A}} \to {\bf{B,B}} \to {\bf{A,}}\)and \({\bf{B}} \to {\bf{(),S}} \to {\bf{\lambda }}\)
Construct the derivation trees of these strings.
\({\bf{a)}}\)\({\bf{(())}}\)
\({\bf{b)}}\)\({\bf{()(())}}\)
\({\bf{c)}}\)\({\bf{((()()))}}\)
In Exercises 43–49 find the language recognized by the given nondeterministic finite-state automaton.
Construct a finite-state machine that delays an input string by two bits, giving 00 as the first two bits of output.
Find a phrase-structure grammar for each of these languages.
a) the set consisting of the bit strings 10, 01, and 101.
b) the set of bit strings that start with 00 and end with one or more 1s.
c) the set of bit strings consisting of an even number of 1s followed by a final 0.
d) the set of bit strings that have neither two consecutive 0s nor two consecutive 1s.
show that the grammar given in Example 5 generates the set \({\bf{\{ }}{{\bf{0}}^{\bf{n}}}{{\bf{1}}^{\bf{n}}}{\bf{|}}\,{\bf{n = 0,}}\,{\bf{1,}}\,{\bf{2,}}\,...{\bf{\} }}\).
What do you think about this solution?
We value your feedback to improve our textbook solutions.