Chapter 13: Q17RE (page 900)
Describe how Turing machines are used to recognize sets.
Short Answer
Set A is recognized by a Turing machine T when the input x moves T from the start state \({s_0}\) to the last state for all \(x \in A\).
Chapter 13: Q17RE (page 900)
Describe how Turing machines are used to recognize sets.
Set A is recognized by a Turing machine T when the input x moves T from the start state \({s_0}\) to the last state for all \(x \in A\).
All the tools & learning materials you need for study success - in one app.
Get started for freelet \({{\bf{G}}_{\bf{1}}}\) and \({{\bf{G}}_{\bf{2}}}\) be context-free grammars, generating the language\({\bf{L}}\left( {{{\bf{G}}_{\bf{1}}}} \right)\) and \({\bf{L}}\left( {{{\bf{G}}_{\bf{2}}}} \right)\), respectively. Show that there is a context-free grammar generating each of these sets.
a) \({\bf{L}}\left( {{{\bf{G}}_{\bf{1}}}} \right){\bf{UL}}\left( {{{\bf{G}}_{\bf{2}}}} \right)\)
b) \({\bf{L}}\left( {{{\bf{G}}_{\bf{1}}}} \right){\bf{L}}\left( {{{\bf{G}}_{\bf{2}}}} \right)\)
c) \({\bf{L}}{\left( {{{\bf{G}}_{\bf{1}}}} \right)^{\bf{*}}}\)
Show that a set is generated by a regular grammar if and only if it is a regular set.
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?
Let G be a grammar and let R be the relation containing the ordered pair \(\left( {{{\bf{w}}_{\bf{0}}}{\bf{,}}\,{{\bf{w}}_{\bf{1}}}} \right)\) if and only if \({{\bf{w}}_{\bf{1}}}\) is directly derivable from \({{\bf{w}}_{\bf{0}}}\) in G. What is the reflexive transitive closure of R?
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.
What do you think about this solution?
We value your feedback to improve our textbook solutions.