Make a DTM to reverse the input word

Assignment Help Theory of Computation
Reference no: EM131928863

Question 1) Make an NPDA to accept L = {w|w ∈ {a,b}* and w contains an equal number of a's and b's}.

Question 2) List the closure properties of LCF.

Question 3) True or False:

i) __LREG = LNPDA (i.e., the set of languages accepted by nondeterministic pushdown automata is the regular languages.)

ii) __Given an arbitrary context-free language L, it is possible to make a deterministic Turing machine to accept L.

iii) __LDTM = LREC (i.e., the set of languages accepted by Turing machines is the decidable languages.)

iv) __LNFA ⊃ LDFA (i.e, the set of languages accepted by deterministic finite automata is a proper subset of the languages accepted by nondeterministic finite automata.)

v) LDFDA = LCF (i.e, the set of languages accepted by deterministic pushdown automata is the context-free languages.)

Question 4) Given the following grammar in GNF, make an NPDA to accept the same language.
S -> aXA | bXB | λ
A -> a
B -> b
X -> aXA | bXB |a|b

Question 5) Make a DTM to reverse the input word. Assume the input word is a binary string, that the start of the tape is marked by ⊥, and that the end of the input is marked by the symbol Ω.

Question 6) Prove that the language L = {aPbqcr |p < q < r} is not context-free.

Hint: You will need to use two values of i.

Reference no: EM131928863

Questions Cloud

Explores the weaknesses or benefits and limitations : Choose ONE of the following topics. Students are to research the chosen topic. Explores the strengths and weaknesses or benefits and limitations.
Synthesis of Cesium Lead Halide Perovskite Quantum Dots : Write a paper on given Topic. Topic - Synthesis of Cesium Lead Halide Perovskite Quantum Dots. Need only abstract and introduction part
Build a website with pci dss compliance in mind : An explanation of how you would design and build a website with PCI DSS compliance in mind
Mitigate risks for e-commerce websites : Details on the best practices you will incorporate to mitigate risks for e-commerce websites with PCI DSS compliance
Make a DTM to reverse the input word : COSC 3106 - Make a DTM to reverse the input word. Assume the input word is a binary string, that the start of the tape is marked by ?, and that the end of the
Implement a security solution for an enterprise : How would you develop, purchase, or implement a security solution for an enterprise in one page?
How much money did you gain or lose by delta hedging : The price today of XYZ is 120. The interest rate per period is 0.8%, How much money did you gain or lose by delta hedging?
Write an essay on immanuel kants the critique of judgement : Write a 1500 word summary/analysis essay on Immanuel Kant's The Critique of Judgement (1892), focusing ONLY on the THIRD MOMENT: OF JUDGEMENTS OF TASTE.
Order number and number of units : For those parts that are currently not on order, the order number and number of units ordered should be left blank. Order the results by part number.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Find cfgs for the languages

Find CFGs for the languages over the alphabet sigma = {a   b}:

  1 we all have a picture of a dream job in our heads some

1. we all have a picture of a dream job in our heads. some of us might even be lucky enough to be working in their

  Construct a finite-state automaton

A combination lock for a safe is designed based on two symbols only, 0 and 1. The combination that opens the safe consists of exactly four symbols.

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Show that the grammar is unambiguous

What does it compute? Prove it, showing how you derive the loop invariant - Show that the grammar is unambiguous

  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:

  Create a method that perform a division operation

Create a method that will perform a division operation on the numbers passed to it in two variables and outputs the results. Use a try catch pair to output an error message if the illegal operation of divide through zero occurs.

  Find nfa that accepts language to regular expression

Find a left-linear grammar that generates L = {an bm : n ≥ 3, m ≥ 2}. Find NFA (with λ-transitions) that accepts the language corresponding to the regular expression ab*aa + bba*ab.

  Create a program that reads integers

Create a program that reads integers in range 0 .. 9999. The event stops reading if -99 is entered. Your event should use Stack to store those numbers then it used Priority Queue to print out those numbers in ascending order.

  Write the converse of the statement

Write the converse, contra-positive and inverse for each of the following statement in natural English.

  Normal 0 false false false en-us x-none

normal 0 false false false en-us x-none x-none

  Manipulation and simplification of logic predicates

How is the principle of inclusion and exclusion related to the rules for manipulation and simplification of logic predicates?

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