Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (12 points) Over the alphabet 10, 1,2), we define the language of non-decreasing strings to be the set of strings where there are no

image text in transcribedimage text in transcribedimage text in transcribed

1. (12 points) Over the alphabet 10, 1,2), we define the language of non-decreasing strings to be the set of strings where there are no Os after 1s, no Os after 2s, and no 1s after 2s. In other words, ND {w {0, 1, 2)' I w does not have 10, 20, or 21 as a substring} (a) Draw the state diagram of a Turing machine that recognizes ND and is not a decider. Briefly justify your answer by explaining the role of each state. Note: You may continue to use the following conventions when drawing state diagrams of Turing machines (1) omit the reject state from the diagram (unless it's the start state), (2) any missing transitions in the state diagram have value (greject, u, R). (b) Draw the state diagram of a Turing machine that recognizes ND and is a decider. Briefly justify your answer by explaining the role of each state. Note: You may continue to use the following conventions when drawing state diagrams of Turing machines (1) omit the reject state from the diagram (unless it's the start state), (2) any missing transitions in the state diagram have value (greject, , R). c) Is there an enumerator that prints the strings in ND in string order? Briefly justify your answer by giving a high- level OR implementation-level definition of such an enumerator OR explaining why it cannot exist. q6 q3 0 D:D D: D q.0 prin q2 q5 State diagram for enumerator enumerating 10,1}*. 1. (12 points) Over the alphabet 10, 1,2), we define the language of non-decreasing strings to be the set of strings where there are no Os after 1s, no Os after 2s, and no 1s after 2s. In other words, ND {w {0, 1, 2)' I w does not have 10, 20, or 21 as a substring} (a) Draw the state diagram of a Turing machine that recognizes ND and is not a decider. Briefly justify your answer by explaining the role of each state. Note: You may continue to use the following conventions when drawing state diagrams of Turing machines (1) omit the reject state from the diagram (unless it's the start state), (2) any missing transitions in the state diagram have value (greject, u, R). (b) Draw the state diagram of a Turing machine that recognizes ND and is a decider. Briefly justify your answer by explaining the role of each state. Note: You may continue to use the following conventions when drawing state diagrams of Turing machines (1) omit the reject state from the diagram (unless it's the start state), (2) any missing transitions in the state diagram have value (greject, , R). c) Is there an enumerator that prints the strings in ND in string order? Briefly justify your answer by giving a high- level OR implementation-level definition of such an enumerator OR explaining why it cannot exist. q6 q3 0 D:D D: D q.0 prin q2 q5 State diagram for enumerator enumerating 10,1}*

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions