Generalized Pushdown Automaton (GPDA)
A GPDA is a PDA which writes an entire string of some known length to the stack or removes an entire string from the stack in one step.
A GPDA is formally defined as a 6-tuple:
where Q, q0 and F are defined the same way as a PDA.
- :
is the transition function.
Computation rules for a GPDA are the same as a PDA except that the ai+1's and bi+1's are now strings instead of symbols.
GPDA's and PDA's are equivalent in that if a language is recognized by a PDA, it is also recognized by a GPDA and vice versa.
One can formulate an analytic proof for the equivalence of GPDA's and PDA's using the following simulation:
Let (q1, w, x1x2...xm) (q2, y1y2...yn) be a transition of the GPDA
where, .
Construct the following transitions for the PDA:
-
- (q1, w, x1) (p1, )
-
- (p1, x2) (p2, )
-
- (pm-1, xm) (pm, )
-
- (pm, ) (pm+1, yn)
-
- (pm+1, ) (pm+2, yn-1)
-
- (pm+n-1, ) (q2, y1)
Read more about this topic: Pushdown Automaton
Famous quotes containing the word generalized:
“One is conscious of no brave and noble earnestness in it, of no generalized passion for intellectual and spiritual adventure, of no organized determination to think things out. What is there is a highly self-conscious and insipid correctness, a bloodless respectability submergence of matter in mannerin brief, what is there is the feeble, uninspiring quality of German painting and English music.”
—H.L. (Henry Lewis)