Chapter 13: Q46E (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) = \{ 100,101\} *}} \cup {\bf{\{ 1\} \{ 001,011\} *}}\).
Chapter 13: Q46E (page 877)
In Exercises 43–49 find the language recognized by the given nondeterministic finite-state automaton.
The result is\({\bf{L(M) = \{ 100,101\} *}} \cup {\bf{\{ 1\} \{ 001,011\} *}}\).
All the tools & learning materials you need for study success - in one app.
Get started for freeGive production rules in extended Backus–Naur form that generate a sandwich if a sandwich consists of a lower slice of bread; mustard or mayonnaise; optional lettuce; an optional slice of tomato; one or more slices of either turkey, chicken, or roast beef (in any combination); optionally some number of slices of cheese; and a top slice of bread.
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{\} }}\).
a) Construct a phrase-structure grammar that generates all signed decimal numbers, consisting of a sign, either + or −; a nonnegative integer; and a decimal fraction that is either the empty string or a decimal point followed by a positive integer, where initial zeros in an integer are allowed.
b) Give the Backus–Naur form of this grammar.
c) Construct a derivation tree for −31.4 in this grammar.
a) Construct a derivation of \({{\bf{0}}^{\bf{2}}}{{\bf{1}}^{\bf{4}}}\) using the grammar \({{\bf{G}}_{\bf{1}}}\) in Example 6.
b) Construct a derivation of \({{\bf{0}}^{\bf{2}}}{{\bf{1}}^{\bf{4}}}\) using the grammar \({{\bf{G}}_{\bf{2}}}\) in Example 6.
In Exercises 43–49 find the language recognized by the given nondeterministic finite-state automaton.
What do you think about this solution?
We value your feedback to improve our textbook solutions.