Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java, I believe Question 1 and 2 are related. 1) Write a transition diagram for a Turing Machine that satisfies the following specifications. Do

image text in transcribed

In Java, I believe Question 1 and 2 are related.

1) Write a transition diagram for a Turing Machine that satisfies the following specifications. Do not make it skeletal -- Show all possible transitions. (That means 3 transitions from each state (except the halt state) since = {x, y, A} for this problem.) Pre: A alpha A.... where alpha is a string of letters from {x,y} and ... are all A Post: if alpha is in the language described by regular expression (xy)* halt in the leftmost cell with the tape unchanged. Otherwise, make an abnormal termination occur. 2) Show your machine as a composite diagram instead of a transition diagram. You can use any of the standard machines (x,L, LX, SR, etc) 3) Write a composite Turing machine (you can use any of the elementary machines discussed in class) that accepts the language consisting of all words that contain more a's than b's. The alphabet is {a,bc} and the precondition is the usual one for language acceptors. Your machine should accept by halting on the leftmost cell of the tape. (So, aabacb and baa are accepted, but the empty string and cacbacbc are not accepted.) 1) Write a transition diagram for a Turing Machine that satisfies the following specifications. Do not make it skeletal -- Show all possible transitions. (That means 3 transitions from each state (except the halt state) since = {x, y, A} for this problem.) Pre: A alpha A.... where alpha is a string of letters from {x,y} and ... are all A Post: if alpha is in the language described by regular expression (xy)* halt in the leftmost cell with the tape unchanged. Otherwise, make an abnormal termination occur. 2) Show your machine as a composite diagram instead of a transition diagram. You can use any of the standard machines (x,L, LX, SR, etc) 3) Write a composite Turing machine (you can use any of the elementary machines discussed in class) that accepts the language consisting of all words that contain more a's than b's. The alphabet is {a,bc} and the precondition is the usual one for language acceptors. Your machine should accept by halting on the leftmost cell of the tape. (So, aabacb and baa are accepted, but the empty string and cacbacbc are not accepted.)

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

____________ Gain sharing is an example.

Answered: 1 week ago

Question

3. Define the roles individuals play in a group

Answered: 1 week ago