Chapter 13: Q57E (page 877)
Show that there is no finite-state automaton that recognizesthe set of bit strings containing an equal number of 0s and 1s.
Short Answer
By the pigeonhole principle shows that there is no finite state automaton.
Chapter 13: Q57E (page 877)
Show that there is no finite-state automaton that recognizesthe set of bit strings containing an equal number of 0s and 1s.
By the pigeonhole principle shows that there is no finite state automaton.
All the tools & learning materials you need for study success - in one app.
Get started for freeDraw the state diagrams for the finite-state machines with these state tables.
Describe how Turing machines are used to recognize sets.
A context-free grammar is ambiguous if there is a word in \({\bf{L(G)}}\) with two derivations that produce different derivation trees, considered as ordered, rooted trees.
Show that the grammar \({\bf{G = }}\left( {{\bf{V, T, S, P}}} \right)\) with \({\bf{V = }}\left\{ {{\bf{0, S}}} \right\}{\bf{,T = }}\left\{ {\bf{0}} \right\}\), starting state \({\bf{S}}\), and productions \({\bf{S}} \to {\bf{0S,S}} \to {\bf{S0}}\), and \({\bf{S}} \to 0\) is ambiguous by constructing two different derivation trees for \({{\bf{0}}^{\bf{3}}}\).
Find five other valid sentences, besides those given in Exercise 1.
Let G be the grammar with V = {a, b, c, S}; T = {a, b, c}; starting symbol S; and productions \({\bf{S }} \to {\bf{ abS, S }} \to {\bf{ bcS, S }} \to {\bf{ bbS, S }} \to {\bf{ a, and S }} \to {\bf{ cb}}{\bf{.}}\)Construct derivation trees for
\(\begin{array}{*{20}{l}}{{\bf{a) bcbba}}{\bf{.}}}\\{{\bf{b) bbbcbba}}{\bf{.}}}\\{{\bf{c) bcabbbbbcb}}{\bf{.}}}\end{array}\)
What do you think about this solution?
We value your feedback to improve our textbook solutions.