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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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