Write a description of a turing machine algorithm

Assignment Help Theory of Computation
Reference no: EM132683913

Question 1: A Caesar cipher is one of the simplest and earliest known tools for encrypting text, i.e., hiding it from plain sight with a reversable technique.
To encode a string, you replace each letter with a letter shifted by some fixed number of positions later in the alphabet - wrapping around if necessary. So, for example, with a shift of 22 over the regular English alphabet {a,b,c....,z} a is replaced with c,b, is replaced by d, and so on, with z being replaced by b. Decoding the string is simply a shift in the reverse direction.

Now, consider the language

L={u#v¦u,v ∈{a,b,c,d}^*,v is equal to u with a Ceasar cipher shift of 2}
So adab#cbcd#L but adab#adab/∈L
Write a description of a Turing machine algorithm that decides L

Question 2:
Consider the language
L={u#v¦u,v ∈{a}^*,|u|and |v|have the same parity }. Parity means odd or even, so the language only includes strings where both parts are odd or both parts are even.

Draw a diagram version of a Turing machine that decides the language L.

Question 3:
Note: you must have correct solutions for Questions 5 and 6 before attempting this question.

Give the big O notation complexity for the Turing machine you described in Question 5.
Give the big O notation complexity for the Turing machine you drew for Question 6.

Question 4:
Prove that the class P of languages with known polynomial time algorithms is closed under the operations of union and concatenation.

Question 5:
Consider the language L={a^i b^j c^k |i,j,k=0,and if i=1 then j=k}
1.Show that L is not regular. Hint: the regular languages are closed under the intersection operation.

2.Show that L meets the requirements of the regular language pumping lemma. In other words, find a pumping length n and show that the conditions hold for strings longer than n

Explain why the previous two parts do not contradict each other.

Question 6. Construct context-free grammars that generate the following languages (give your answers as a set of rules):
{a^k w|w?{a,b}^*,|w|=k,k=0}
{a^k b^(n+k) a^k?{a,b}^* |n=0,k=0}

Reference no: EM132683913

Questions Cloud

What is the leverage ration for position : If you have to post $2000 USD as the margin to trade this contract, what is the leverage ration for position?
Explain whether any of behaviors violate any criminal laws : Explain whether any of the behaviors violate any criminal laws. Explain whether any behaviors violate the Constitutional rights of the defendant.
Proportion of the fund allocated to two-year bonds : It uses this portfolio to make these five payments of $1,000. Find the proportion of the fund allocated to two-year bonds.
Discuss an important topic that presents celia role : Discuss an important topic that presents Celia's role in the company related to the principles of the Accounting Information System (AIS).
Write a description of a turing machine algorithm : Draw a diagram version of a Turing machine that decides the language L and Write a description of a Turing machine algorithm that decides
Why is multi-collinearity not a problem in simple regression : (a) Why is multi-collinearity not a problem in simple regression?
What are the arguments in favour of recording gains : What are the arguments in favour of recording gains and losses on disposals of property, plant, and equipment as part of profit from operations?
Discuss results of empirical testing of the theory : Critically evaluate the theory pointing out its strengths and weaknesses. Discuss results of empirical testing of the theory. Discuss policy implications for.
What is the effect of the distribution on the shareholder : During the year, XYZ Sand and Gravel Corporation distributed a parcel of land. What is the effect of the distribution on the shareholder's taxable income?

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  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

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  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).

  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.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  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