Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer parts a, b, c 1. (12 points) Over the alphabet 0, 1,2], we define the language of non-decreasing strings to be the set

Please answer parts a, b, c

image text in transcribed

1. (12 points) Over the alphabet 0, 1,2], we define the language of non-decreasing strings to be the set of strings where there are no Os after 1s, no 0s after 2s, and no 1s after 2s. In other words, ND E0,1,2 w does not have 10, 20, or 21 as a substring) (a) Draw the state diagram of a 'luring 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, 1R (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 o:O.RI10:0,R O:O.LI1:1. L q6 x:X.RIO:1.R q.0 State diagram for enumerator enumerating 0, 13. state from the diagram (unless it's the start state), (2) any missing transitions in the state diagram have value (Ireject, - (c) Is there an enumerator that prints the strings in ND in string order? Briefly justify your answer by giving a high-level /implementation level formal definition of such an enumerator OR explaining why it cannot exist 1. (12 points) Over the alphabet 0, 1,2], we define the language of non-decreasing strings to be the set of strings where there are no Os after 1s, no 0s after 2s, and no 1s after 2s. In other words, ND E0,1,2 w does not have 10, 20, or 21 as a substring) (a) Draw the state diagram of a 'luring 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, 1R (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 o:O.RI10:0,R O:O.LI1:1. L q6 x:X.RIO:1.R q.0 State diagram for enumerator enumerating 0, 13. state from the diagram (unless it's the start state), (2) any missing transitions in the state diagram have value (Ireject, - (c) Is there an enumerator that prints the strings in ND in string order? Briefly justify your answer by giving a high-level /implementation level formal definition of such an enumerator OR explaining why it cannot exist

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

Step: 3

blur-text-image

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

In Problems 3 and 4, convert each angle in radians to degrees. 5 2

Answered: 1 week ago

Question

List the components of the strategic management process. page 72

Answered: 1 week ago