Devise a turing machine with input given in unary notation

Assignment Help Theory of Computation
Reference no: EM13951087

Devise a Turing machine with input given in unary notation (i.e., a string of n 1's denotes the integer n, and numbers are delimited by 0's) such that the machine produces the following output:

0 if x is divisible by 4

1 if x is congruent to 1 modulo 4

2 if x is congruent to 2 modulo 4

3 if x is congruent to 3 modulo 4

Show the state table for the machine.

Reference no: EM13951087

Questions Cloud

Needs to be entered into a new database : Brian has a list of customers that needs to be entered into a new database. Before Brian can begin entering records into a database, he must first A. create a form to display the customer's information. B. enter information into an Excel spreadsh..
Question on setting up supplier records : After you have finished setting up customer records for The Digital Village, Alonso asks you to perform the following steps in MYOB - identify the tab that is part of the window that appears after those steps.
Formulate this problem as language : Consider the problem of testing whether a Turing machine M on an input w ever attempts to move its head left when its head is on the left-most tape cell.
Describe ways in which test groups might not representative : Describe some ways in which the test groups might not be representative of the population of people with arthritis. If the company itself paid for or conducted its own research, would you have any concerns? Why or why not?
Devise a turing machine with input given in unary notation : Devise a Turing machine with input given in unary notation (i.e., a string of n 1's denotes the integer n, and numbers are delimited by 0's) such that the machine produces the following output:
Write a program that reads a string from the keyboard : Write a program that reads a string from the keyboard and tests whether it contains a valid date. Display the date and a message that indicates whether it is valid.
A turing machine for f(x)=2x : Construct a turing machine to compute the product x*y of any two positive integers x and y.
Write a program that asks a user for a file name and prints : Write a program that asks a user for a file name and prints the number of characters, words, and lines in that file.
Define biodiversity and explain how it is most commonly : Define biodiversity and explain how it is most commonly measured. Now consider the various ways to define a species (i.e., species concepts) covered in the readings and explain how current estimates of biodiversity might change depending on the speci..

Reviews

Write a Review

Theory of Computation Questions & Answers

  Create a program that makes an object

Create a class named Pet, after creating the class, create a program that makes an object of the class and prompts the user to enter the name, type, and age of his pet.

  Perform acl test and prepare a report with conclusions

Perform the ACL test and prepare a report with your conclusions. Document your report with ACL printouts showing details of test results and the command log - Identify an operational concern related to the revenue procedures.

  How to express correctness properties in ltl

Express the given correctness properties in LTL. Defne propositions/variables to model the events mentioned in the question. If a parent process calls the blocking waitpid() system call then it is blocked until child process terminates.

  Find the chomsky normal

Show that if G is a CFG in Chomsky normal form, then for any string w in L(G) of length n >= 1, exactly 2n - 1 steps are required for any derivation of w.

  Show the memory snapshot of the each statement

Give a memory snapshot each statement is executed. Assuming that x is equal to 4 and that y is equal to 6 before the statement is executed. Also, assume that all the variables are integers.

  Imply the conclusion

Use rules of inference to show that the hypotheses "If it does not rain or if it is not foggy, then the sailing race will be held and the lifesaving demonstration will go on,

  Pto policies have become good tools for hr staff to use in

pto policies have become good tools for hr staff to use in terms of organizational incentives.while reviewing the

  Demonstrate that each word problem is a valid argument

Demonstrate that each word problem is a valid argument. Use rules of inference to show steps and reasons in the proof.

  Satisfy the properties - reflexive and symmetric

For the relations below, explain why the relation does or does not satisfy each of the properties reflexive,symmetric, antisymmetric, and transitive.

  Write algorithm for finding useless-productive nonterminals

Write down the algorithm for finding useless/productive nonterminals. Describe how this gives you the algorithm for whether language generated by grammar is empty.

  Purchasing and accounts payablesaul and latisha are both

purchasing and accounts payablesaul and latisha are both administrative managers in a machine tool company. latisha is

  It ethics assignment i need your help in doing my it ethics

i need your help in doing my it ethics assignment. i have attached all the relevent details of my assignment i.e. from

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