Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

1. (12 points) Over the alphabet 0,,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, - R). (b) Draw the state diagram of a Tring machine that recognizes ND and is a decider. Briefly ustify 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 o:O.RI10:0.R O:O.LI1:1.L q6 q3 q4 q2 q.0 State diagram for enumerator enumerating 10, 1)*. 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 Bonus not for credit: Could you generalize these constructions to work with the analogous For reference, we provide a state diagram of an enumerator that enumerates 10,1)*, printing OR explaining why it cannot exist. language over a larger alphabet 10,1,2...,9)? strings in string order 1. (12 points) Over the alphabet 0,,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, - R). (b) Draw the state diagram of a Tring machine that recognizes ND and is a decider. Briefly ustify 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 o:O.RI10:0.R O:O.LI1:1.L q6 q3 q4 q2 q.0 State diagram for enumerator enumerating 10, 1)*. 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 Bonus not for credit: Could you generalize these constructions to work with the analogous For reference, we provide a state diagram of an enumerator that enumerates 10,1)*, printing OR explaining why it cannot exist. language over a larger alphabet 10,1,2...,9)? strings in string order

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

Database And Expert Systems Applications Dexa 2021 Workshops Biokdd Iwcfs Mlkgraphs Al Cares Protime Alsys 2021 Virtual Event September 27 30 2021 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Anna Fensel ,Jorge Martinez-Gil ,Lukas Fischer

1st Edition

3030871002, 978-3030871000

More Books

Students also viewed these Databases questions

Question

Define procedural justice. How does that relate to unions?

Answered: 1 week ago