Create standard 1-tape turing machine to calculate function

Assignment Help Theory of Computation
Reference no: EM1356994

Q1) Create a standard 1-tape Turing machine M to compute the function sub3, which is defined as follows:

sub3(n) = n-3 if n > 2 0 if n ≤ 2.

Specifically, calculate sub3 of a natural number represented in binary. For example, on input 10111, M should output 10100. On input 11101, M should output 11010. (Hint: you may want to define a subroutine.)

Reference no: EM1356994

Questions Cloud

Bond journal entries : Crow Co. issued 493,000 of 10%, 20 yr. bonds on Jan, 1, 2010, at face value. Interest is payable annually on Jan. 1. Prepare journal entries to record the last of the following events:
Explain key attributes and benefits approaches : Show the key attributes of total rewards programs and how each contributes to employee performance. Outline a strategy for integrating all of these attributes into an organization's overall approach to total rewards and provide a rationale.
What is the force require : Many people mistakenly believe that the astronauts that orbit Earth are "above gravity." Calculate g for space shuttle territory 150 km above Earth's surface. suppose Earth's mass is 6.0 1024 kg, and its radius is 6.38 106 m (6380 km). Your answer..
Describe the profit maximizing input use : The market demand function is Q=80-p. Describe the profit maximizing input use, the output price, and the monopolist's profit.
Create standard 1-tape turing machine to calculate function : Create a standard 1-tape Turing machine M to calculate the function sub3. Specifically, calculate sub3 of a natural number represented in binary.
Government assistance and influence : Show how governments influence and effect national competitiveness and this Conference should also discuss the resent government Bailout of the banking and automotive industries
Record asset disposals-gains-losses : Presented here are selected transactions for Lulu Corporation for 2010. Journalize all entries required on the above dates, including entries to update depreciation on assets disposed of, where applicable. Sager Corporation uses straight-line depr..
Give the x- and y- components of its change in momentum : A car is traveling at 43.2km/hr on a flat, concrete highway. If the brakes are applied such that skidding occurs, the kinetic coefficient of friction between the road and tires is 0.808. If anti-lock brakes are properly applied after that no skidd..
Explain about social perception : Show the factors that influence social perception? Discuss the barriers to social perception? Discuss an experience you've had with social perception.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Write grammar for language consisting of strings

Write a grammar for the language consisting of strings that have n copies of the letter a followed by same number of copies of the letter b, where n>0

  Express set as regular expression

Express the following set as a regular expression: The set of all strings of length at least three over {0,1} such that every three consecutive.

  Redundant sequence identi cation

Redundant sequence identi cation

  Interpreting the regular expressions as languages

Show that the following identities hold for regular expressions over any alphabet: epsilon + R*R = R*. These should be done by interpreting the regular expressions as languages.

  If l recognized by dfa then language left half is regular

We showed to prove that if L can be identified by DFA then the language left half(L) = {x ∈ ∑*|∃y xy ∈ L and |x| = |y|} is also regular; here |x| means length of x.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

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