Write a program for symbols valid for this machines

Assignment Help Other Subject
Reference no: EM131912124

History and Philosophy of Computing Universal Turing Machine

Exercise 1 Define a program ADD for the following:

- It starts reading the entries of a list of 0s and 1s one by one
- When it reads 0 does nothing on the input and moves right staying in
- When it reads 1 does nothing on the input and moves right staying in
- When it reads empty does nothing on the input and moves left and goes into Add state
- In Add state, when it reads 0 writes 1 and stays where it is and ends
- In Add state, when it reads 1 writes 0 and goes left and stays in Add state
- When it reads empty it writes 1 and stays where it is and ends.

What does this program do to a binary number? What to a list of 1s? what to an empty tape?

Exercise 2 Define a program ADD1 performing ADD separately on two binary numbers on the same tape, separated by *.

Exercise 3 Now define a program that takes a list of 1s and 2s and returns a sorted list with all 1s before all 2s. To do so, implement the following logic:

- the input of the machine is a list of 1s and 2s;

- first read the input from left to right
if there is a 1, keep it
as soon as you find a 2, change it to a placeholder for example 3, and move until the right end of the input

- when reached the right end, read the input from right to left
if there is a 2, keep it (and stay in this state)

if there is a 1, change it to 2, then go until the end of the input keeping everything as it is, except when you find a 3 change it into a 1 and then start again
if there is a 3 change it to 2, then move left until the first empty cell, and stop.

Note that the above description is very informal and not as detailed as the other ones. You have to figure out how many states are needed and how and when to change from state to state.

Exercise 4 Write a program for the following:
- the symbols valid for this machines are 1, 0,*
- the input is of the form r(1s * 1s)
- the machine subtracts the second series of 1s from the first

- the output is of the form r(1s0s*0s), where the list of 1s is the reminder of the subtraction, the 0s are the elements deleted respectively in the first and in the second input.

Exercise 5 Read the article by Copeland and Sommaruga (you will need to read at least sections 1, 3, 4). Explain the difference between the concept of stored-program in the theoretical sense of Turing and specify which term was used by Turing to express the notion of ‘program'. Moreover, highlights some of the other contributions to the development of this concept.

Exercise 6 Explain in which sense the development of the UTM justifies the Church-Turing thesis.

Reference no: EM131912124

Questions Cloud

Discuss the social issue or problem for exploration : Share the social issue or problem you chose (or are considering) for exploration in your Final Essay. Explain why you chose the social issue or problem.
Locate a recent article on cyber-crime : Locate a recent article on cyber-crime (within 6mo) and post the link for others.
Using unrealistic estimates for effort and duration : Please describe the following scheduling problems and give examples of them in relation to software projects.
Developing your own personal theory on leadership : Write a 3-page paper developing your own personal theory on leadership, including the answers to several questions (to be posted).
Write a program for symbols valid for this machines : CSD3203 – History and Philosophy of Computing Universal Turing Machine - Explain in which sense the development of the UTM justifies the Church-Turing thesis
Program written using kernel-level threads : If the program comprises 48 threads and is executed on an 6-processor system, what is the maximum possible speedup? Briefly explain your answer.
Code a python program : Need assistance with python. The question is: Summary: code a python program that demonstrates
How the pope has worked with the leaders of your faith : You may look at this through the lens of your own religious background and discuss how the Pope has worked with the leaders of your faith.
Which language do you speak at home or with your family : Which language do you speak at home or with your family? What were your goals/motivations when you came to Miami?

Reviews

Write a Review

Other Subject Questions & Answers

  Understanding to comply with a student iep

Some general educators believe they do not have time or the understanding to comply with a student's IEP.

  Terror-management theory or socual-cognitive theory

Which theory proposes that faith in one's worldview is used to defend against a deeply rooted fear of death is it terror-management theory or socual -cognitive theory?

  Calculate the company''s return on equity for the period

Fillips Company had net income of $36,700 in a year when its stockholders' equity averaged $450,000 and its total assets averaged $2,500,000.

  The goal of gender-neutral issue

According to one of the articles, what should the goal of gender-neutral writing be? What is meant by this?

  Interpret the stated numbers

A 6% six-year government bond yields 12% and 10% six-year bond yields 8%. Calculate the 6 year spot rate. Part of the question is understanding how to interpret the stated numbers.

  Discuss how conductor can harness also blend all of gifts

discuss how conductor can harness also blend all of gifts that orchestra possesses to ensure that orchestra is able to play all of their songs correctly.

  Calculate the position of the summation stream

A 50% mass solution of solute A in solvent B is extracted with another solvent S in a countercurrent multiple contact extractor. The mass of S is 65% that of the feed solution

  Do you support the move toward inclusion

How could the principles of observational learning help to improve the classroom behavior of students with behavioral disorders or social skill deficits?

  Describe legal and ethical dilemma discussed in case study

Describe the legal and ethical dilemma discussed in the case study. Analyze the key ways in which a patient's right to die relates to this specific case.

  Introduction to tourismand hospitality

A Title Page with your name and student number, the subject code and title, the name of the lecturer/tutor, and the title of the assessment - The title enc Introduction to Tourismand Hospitality

  Discuss the rationale for the medication regimen for ryan

What other data indicate the impact on Ryan's growth and development? Discuss the rationale for the medication regimen for Ryan. What is your impression of Ryan's assessment data?

  Administration to establish american control

Describe the specific actions taken by the Polk administration to establish American control of California. If you had been a citizen of the USA in the 1840s, would you have supported these actions? Why or why not?

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