Provide the configuration table of a turing machine

Assignment Help Other Subject
Reference no: EM131912104

History and Philosophy of Computing Turing Computability

Exercise 1 Provide the configuration table of a TM that alternates 1, 0 with interleaving blanks starting from any input tape (i.e. not necessarily blank).

Exercise 2 Provide the configuration table of a TM that performs multiplication by 2.

Exercise 3 Provide the configuration table of a TM that performs addition as informally defined above.

Exercise 4 Provide the configuration table of a TM that performs multiplication as informally defined above.

Exercise 5 Provide the configuration table of a Turing Machine that starts with a tape containing a block of n 1s for n an integer of your choice and it is otherwise blank. The machine, started scanning the leftmost 1 on the paper, it halts scanning the rightmost 1 on the tape. The machine does not either print nor erase anything. Which function is this machine implementing?

Exercise 6 Provide the configuration table of a Turing Machine that starts with a tape containing a block of n 1s for n an integer of your choice and it is otherwise blank. The machine, started scanning the leftmost 1 on the paper, it halts after scanning the rightmost 1 on the tape and having deleted all of them. Which function is this machine implementing?

Exercise 7 Provide the configuration table of a Turing Machine that starts with a tape containing a block of n 1s, followed by a blank, followed by a block of m 1s. The machine is started scanning the leftmost 1 of the block of n 1s, and halts scanning the rightmost 1 of a block of n + m 1s on the tape. Which function is this machine implementing?

Exercise 8 Provide the configuration table of a Turing Machine that starts with a tape containing a block of n 1s for n an integer of your choice and it is otherwise blank. The machine, started scanning the leftmost 1 on the paper, it halts scanning the rightmost 1 of a block of n × 2 inputs of 1s. Which function is this machine implementing?

Exercise 9 Provide the configuration table of a Turing Machine that starts with a tape containing a block of n 1s, followed by a blank, followed by a block of m 1s, followed by a blank, followed by a block of k 1s. The machine is started scanning the leftmost 1 of the block of n 1s, and halts scanning the rightmost 1 of a block of n - 1 1s, followed by a block of m + 1 1s, followed by a blank, followed by a block of k + 1 1s. Which functions is this machine implementing?

Exercise 10 Start trying the following program:

#! start s

#! end e

#! fill*

# keep 1 and move to the right

s 1 1 R s

# change 0 with 1andmove to the right

s 0 1 R s

# stop, when the end of the word was reached

s * * N e

First, can you say what this program does? Now load it into Tursi (File -> Open); enter an input in the Tape window and press Enter to load it on the tape. Execute the program by clicking on the green play button. Observe the result and check if it confirms your intuition about the program. Try few other inputs.

Exercise 11 Write a Tursi program that simulates a binary incrementer. Given a binary number, it returns on tape the next higher binary number. To do that, the machine state table is defined by three states:

State 0 if reading an empty cell * the machine moves the head left and goes into the next state;

if reading 0, it keeps 0 and moves right remaining in the same state;

if reading 1, it keeps 1 and moves right remaining in the same state;

State 1 If it reads *, it write 1 and moves right, going into state 2

If it reads 0, it writes 1 to increment it and moves left, going into state 2;

If it reads 1, it writes 0; because the machine has to carry a ‘1' over to the digit to the left, it will move the head to the left and stay into state 1;

State 2 If it reads, * it writes the same, the input is finished so it can move left and halt

If it read 0 it writes 0, moves right and stays in state 2

If it read 1 it writes 1, moves right and stays in state 2.

As for the previous exercise, load the program into Tursi and enter a binary input and check that its execution increases to the next binary (you can use your knowledge of binary to check that the output corresponds to the next binary and if you are using large binary you can use an online converter to decimal).

Exercise 12 Write a program that simulates a unary subtraction. The initial tape is composed by a number made of units (e.g. 3 = 111) followed by a blank * and a smaller number made by units (e.g. 2 = 11). So in this program we always assume that the greatest number is the first input and the second number is the second input. The general idea is to delete all the 1s from the second input and delete as many from the first input, so that only the difference remains on tape. Then the machine does the following:

1. First State: it reads the first input;

2. Second State: it reads the second input;

3. Third State: it removes a 1 from the second input;

4. Fourth State: just to go over the second input to reach the first input;

5. Fifth State: starts when we have emptied the second input and want just to check that nothing is left there;

6. Sixth State: delete all the 0s in the second input and substitute them with *;

7. Seventh State: delete all the 0s in the first input and substitute them with *;

8. Eighth State: remove a 1 from the first input;

As for the previous exercise, load the program into Tursi and enter an input. In this case remember that the input is only ones: if you want to subtract 3 from 5, your input needs to be 11111 * 111. Run your program and check that the output is correct.

Exercise 13 Test and explain what the following program does:

#

#! start state0

#! end stop

#! fill * #
state0 * * l state1

state0 0 0 r state0

state0 1 1 r state0

#
state1 * 1 r state2

state1 0 1 l state2

state1 1 0 l state1

#
state2 * * l stop

state2 0 0 r state2

state2 1 1 r state2

Reference no: EM131912104

Questions Cloud

Total investor-supplied capital and operating income : Companies HD and LD have the same total assets, total investor-supplied capital, operating income (EBIT), tax rate, and business risk.
Explain philosophy of guest service : For a fictional full- service mid-sized resort on the beach in Florida (Residence haven). Be sure to include (but not limit) the following elements.
Impact on supply chain performance : 1. Describe supply chain coordination, the bullwhip effect, and their impact on supply chain performance.
Explain the communication challenges unique to groups : When working with teams composed of diverse individuals, often in cross-cultural settings, there is significant potential for errors and misunderstandings.
Provide the configuration table of a turing machine : CSD3203 – History and Philosophy of Computing Turing Computability - Provide the configuration table of a Turing Machine that starts with a tape containing
Create a process plan for assembly of a loudspeaker : ENG770s2 - Virtual Systems Design and Simulation for Production Coursework Assignment. Create a process plan for assembly of a loudspeaker
Greatest impact as a decision leader : Which of the leadership and decision-making concepts have had the greatest impact as a decision leader?
What are expert power and legitimate power : What are expert power and legitimate power? What are their advantages and disadvantages?
Do you believe we are becoming a less ethical nation : Discuss your thoughts and feelings about ethics and fairness in managerial decision-making. Do you believe we are becoming a less ethical nation?

Reviews

Write a Review

Other Subject Questions & Answers

  Write and post a response to keegan

Read Keegan- Even Artichokes Have Doubts. Write and post a response to Keegan

  Fixed-price-cost-reimbursable

Fixed-price, cost-reimbursable, and time and material contracts are all potential agreements that could be reached between organizations. Describe each type of contract, and explain the range of risk for each of these types of contracts.

  What language establishes the speaker credibility or ethos

What language establishes the speaker's credibility or ethos? What does the speaker say to demonstrate honesty

  Connection between nutritional choices and overall health

Write three paragraphs, Describe the link between nutritional choices and overall health. Include three reputable sources, cited at the bottom of the paper.

  Describe how your chosen items tie into a review

Reflect on current issues related to your research topic and post at least two of these issues to the Discussion Board.

  Discuss how the legal systems of countries differ

Explain in detail why and how the political systems of countries differ; discuss how the legal systems of countries differ; explain what determines the level of economic development of a nation; discuss with examples the macro-political and economic ..

  Develop five medical staff by-laws based on the information

Develop five Medical Staff By-laws based on the information in the Medicare's Conditions of Participation. An explanation for EACH by-law. Why it is important? How does it meet Medicare's Conditions of Participation?

  Appropriate method of conducting a survey

Based upon your research question/hypothesis, what do you think would be the most appropriate method of conducting a survey?

  What if everyone in a society held the same views as the

what if everyone in a society held the same views as the narrator of witness? on a separate piece of paper write a

  Analyze the personality development

Describe the major life events of the theorist that you feel influenced his or her personality development.

  Define the following and give a real world

Define the following and give a real world example of each (other than the ones described in the text book): Finish-to-Start; Start-to-Start; Finish-to-Finish; Start-to-Finish.

  Discuss the reasoning for your choice of jurisdiction

Discuss the reasoning for your choice of jurisdiction of the court in each case. Provide two (2) examples of jurisdiction choice to support your rationale.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd