Chapter 13: Q2E (page 875)
Show that if A is a set of strings, then\({\bf{A}}\emptyset {\bf{ = }}\emptyset {\bf{A = }}\emptyset \).
Short Answer
The following steps show that\({\bf{A}}\emptyset {\bf{ = }}\emptyset {\bf{A = }}\emptyset \).
Chapter 13: Q2E (page 875)
Show that if A is a set of strings, then\({\bf{A}}\emptyset {\bf{ = }}\emptyset {\bf{A = }}\emptyset \).
The following steps show that\({\bf{A}}\emptyset {\bf{ = }}\emptyset {\bf{A = }}\emptyset \).
All the tools & learning materials you need for study success - in one app.
Get started for freeLet V be an alphabet, and let A and B be subsets of \({\bf{V*}}\) Show that \({\bf{|AB}}\left| {{\rm{ }} \le {\rm{ }}} \right|{\bf{A||B|}}\).
Question:Let G = (V, T, S, P) be the phrase-structure grammar with V = {0, 1, A, B, S}, T = {0, 1}, and set of productions P consisting of S → 0A, S → 1A, A → 0B, B → 1A, B → 1.
a) Show that 10101 belongs to the language generated by G.
b) Show that 10110 does not belong to the language generated by G.
c) What is the language generated by G?
Give production rules in extended Backus–Naur form that generate all decimal numerals consisting of an optional sign, a nonnegative integer, and a decimal fraction that is either the empty string or a decimal point followed by an optional positive integer optionally preceded by some number of zeros.
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}\)
a)Define a phrase-structure grammar.
b)What does it mean for a string to be derivable from a string wby a phrase-structure grammar G?
What do you think about this solution?
We value your feedback to improve our textbook solutions.