Question

In: Computer Science

Show that the following language is decidable APDA = { | M is a push down...

Show that the following language is decidable APDA = { | M is a push down automata that accepts string w} Explain your steps.

Solutions

Expert Solution

APDA = { M | M is a push down automata that accepts string w }

APDA is a language which contains encoding of Mi and Wi where each Mi is a Push Down Automata (PDA) . The encoding of Mi and Wi means the representation of PDA and the string in binary values 0 (or) 1. This concept is same as the one used in Universal Turing Machine (UTM). So APDA can be understood as :

APDA = { <M1,W1>, <M2,W2> , <M3,W3> , <M4,W4> , <M5,W5> , .............................. }

Here <M, W> represents that PDA M accepts the string W. To determine whether a string is acceptable by a language or not the following steps should be done

  1. Conversion of given PDA to Context Free Grammar (CFG) (PDA to CFG Algorithm)
  2. Conversion of obtained CFG to Chomsky Normal Form(CNF) Grammar (Simplification of CFG Algorithm)
  3. Using this CNF Grammar to determine whether the string W is acceptable by it or not by Cocke-Younger-Kasami Algorithm (CYK Algortihm)

For steps 1,2 and 3 algorithms are already mentioned. All these algorithms take finite time. Either it is DPDA (or) NPDA, same three steps will have algorithms.

For a language to be decidable, it should be acceptable by a Halting Turing Machine (HTM), which is a type of TM that says whether the given string is acceptable by the TM or not . If the string is acceptable it says 'Yes' else it says 'No' unlike normal TM. Here also, the HTM will be programmed with three algorithms each corresponding to the steps above and each encoding will be given as an input. Then HTM determines whether M accepts W or not in finite amount of time. It can be visualized as :

For each and every string of APDA , algorithms are present to perform required action. So every string of APDA when given to HTM will give a valid result (yes or no). So APDA is decidable .


Related Solutions

Let INFINITE PDA = {<M>|M is a PDA and L(M) is an infinite language}. Show that...
Let INFINITE PDA = {<M>|M is a PDA and L(M) is an infinite language}. Show that INFINITE PDA is decidable.
Show that the language F={M| M is a Turing machine , and L(M) contains infinite elements}...
Show that the language F={M| M is a Turing machine , and L(M) contains infinite elements} is not Turing recognizable.
In C/C++ programming language, write down the lines of codes (and figure) to show- a) assignment-by-sharing...
In C/C++ programming language, write down the lines of codes (and figure) to show- a) assignment-by-sharing b) dangling reference
Scenario: At 0630, Margarite reports an urge to bear down and push with contractions, is very...
Scenario: At 0630, Margarite reports an urge to bear down and push with contractions, is very uncomfortable with contractions, and cries out that she feels more pressure. Her SVE reveals she is 10 cm/100% and +1 station. She has a strong urge to push with contractions that are every 2 minutes and strong to palpation. The fetal heart rate (FHR) is 130 with moderate variability, and the FHR drops to 90 bpm for 40 seconds with pushing efforts. 1. What...
FASB has not taken a position on the use of push-down accounting. Take a position on...
FASB has not taken a position on the use of push-down accounting. Take a position on whether push-down accounting provides the most relevant information for both internal and external financial statement users. Provide support for your rationale.
Show that the language ?={?^??^??^?:?≥0,?≥0}is not regular.
Show that the language ?={?^??^??^?:?≥0,?≥0}is not regular.
Ice cubes usually float in a glass of water. If you push the ice cubes down...
Ice cubes usually float in a glass of water. If you push the ice cubes down to the bottom of the glass (using a straw), would they cool the water more, or less, quickly? Explain.
"Push-down Accounting and the Recording of Both Tangible Assets and Intangible Assets" Please respond to the...
"Push-down Accounting and the Recording of Both Tangible Assets and Intangible Assets" Please respond to the following: Per the textbook, the FASB has not taken a position on the use of push-down accounting. Take a position on whether push-down accounting provides the most relevant information for both internal and external financial statement users. Provide support for your rationale. Compare the key differences between U.S. GAAP and IFRS’s position on both intangible research and development costs and tangible depreciable assets. Indicate...
A crate is given a push such that it has an initial speed of 5.2 m/s...
A crate is given a push such that it has an initial speed of 5.2 m/s headed up a 15 degree incline. If the crate travels 3.5m up the incline before reversing direction, what is the coefficient of kinetic friction between the crate and the incline?
You push a 2 kg block down a ramp. You apply a force of 9 N...
You push a 2 kg block down a ramp. You apply a force of 9 N that is directed along and down the ramp with a coefficient of kinetic friction of 0.20. The block travels from rest to 4 m/s over a distance of 2 meters. Use g = 10 m/s/s. Report using 3 significant digits. How many Newton's second law equations can you write for this problem? Group of answer choices 4 3 2 1 How many forces are...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT