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

i)Show that infinite decidable language has infinite decidable subset ? ii)Show that any infinite decidable language...
i)Show that infinite decidable language has infinite decidable subset ? ii)Show that any infinite decidable language L has an infinite decidable subset J with the property that L − J is also infinite. ​ iii. Does the statement in part i of this problem still true if L is only recognizable ? Show or Counter example. No Spam please.
What does it mean to say that a language L is decidable?
What does it mean to say that a language L is decidable?
Prove or disprove with a counterexample the next claims: (a) The complement of a decidable language...
Prove or disprove with a counterexample the next claims: (a) The complement of a decidable language is decidable. (b) The Kleene star of a Turing-recognizable language is Turing-recognizable.
Show that Turing-decidable languages are closed under the following operations: union concatenation star Show that Turing-recognizable...
Show that Turing-decidable languages are closed under the following operations: union concatenation star Show that Turing-recognizable languages are closed under the following operations: union concatenation star Each answer needs only be a short informal description of a Turing Machine (but it must still be sufficiently precise so someone could reconstruct a formal machine if needed).
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.
Please write an example of a language that is Turing-decidable but not Context-Free. You can just...
Please write an example of a language that is Turing-decidable but not Context-Free. You can just state what the language is; no need to give a full TM algorithm for it. 1b) Please write an example of a language that is not Turing-decidable. You can just state what the language is; no need to give a full TM algorithm for it.
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT