Pushdown Automata
[11/64%]Consider the PDA , where is defined as follows:
Determine what is.
Construct a PDA accepting the language .
Construct a PDA that accepts the language
Construct a PDA that accepts the language
Construct a PDA that accepts the language
Construct a PDA M that accepts the following language:
Construct a PDA that accepts the language
For each of the following languages , construct a PDA to accept . In addition, for each given string , show an accepting computation path of your PDA on .
.
.
.
.
.
.
.
.
.
.
acabcc.
In Example 3.32, when we finished processing the input symbols, we move to one of the final states or if the stack is nonempty. Show that the two separate states are necessary. That is, suppose we merge states and of Figure 3.15 into a single final state , with the instructions
Show that, then, the new PDA would accept some strings not in .
Show that each of the following variations of the pushdown automaton model is equivalent to our original definition of pushdown automata, in the sense that the class of languages accepted by pushdown automata remains the same.
The PDA is allowed to push two stack symbols into the stack in one move; that is, the transition function is a function of the following form:
The PDA is allowed to push any number of stack symbols into the stack in one move; that is, the transition function is a function of the following form:
The PDA is required to pop up the top element of the stack at each move and is allowed to push two stack symbols into the stack in one move; that is, the transition function is a function of the following form:
(We assume that the PDA starts with a special symbol $ in the stack, i.e., the initial configuration is ().)
The PDA accepts an input string as long as it reaches a final state after it finishes reading the input symbols (regardless of whether the stack is empty or not); that is, the PDA accepts a string if for some and some .
A PDA is a deterministic if no configuration of has more than one successor configuration (but a nonfinal configuration may have no successor). For each of Examples 3.28-3.33, do the following:
Determine whether the PDA given in the example is deterministic or not.
If the answer to (a) is no, then determine whether there is an equivalent deterministic PDA accepting the same language. If yes, present your deterministic PDA; if no, show why not. [Hint: One way of eliminating (part of) nondeterminism in a PDA is to use the PDA model of Exercise 3(c).]