What is the language recognized by the following PDA? X is the PDA start symbol, 0 is the initial state, and 2 is the final state.
(0, ∧, X, nop, 2)
(0, a, X, push(A), 1)
(1, b, A, pop, 0)
A. {ambn | m, n ≥ 0}
B. {anbn | n ≥ 0}
C. {(ab)n | n ≥ 0}.
D. {(ba)n | n ≥ 0}



Answer :

X is the PDA initialization symbol, 0 is the initial state, and 2 is the final state. (0, ∧, X, nop, 2) (0, a, X, push(A), 1) (1, b, A, pop, 0) The following PDA language L =  {anbmcn | n, m ≥ 0}. X is the PDA initialization symbol, 0 is the initial state, and 3 is the final state.

In this type of input string, an input can have more than one transition state, so it is called non-deterministic PDAA, where q0 is the initial and final state, ɛ is accepted. For each a, X is pushed onto the stack and the PDA remains in control of the A finite state, reading the string, one symbol at a time (input symbol). Step 2: (state q2) Pop a from the stack when b is seen on the tape. Because they have no memory  PDA for L = {0 n1n|n ≥ 0}. (0,ε,X). (1,X,ε). (1,X,ε). 0. 1 If we reach a final state with an.(0,ε,X), the PDA accepts w. (1,X,ε). (1,X,ε). 0. 1. 09-5: Push-down automata. M = (K, Σ, Λ, ∆, s, F)  PDA accepts w if we end up with an empty stack.

To learn more about   initial  please click on below link

https://brainly.com/question/13243199

#SPJ4

Other Questions