Question

Consider two languages L1 and L2 accepted by the pushdown automata M1 = (K1, Σ, Γ1,...

Consider two languages L1 and L2 accepted by the pushdown automata M1 = (K1, Σ, Γ1, ∆1, s1, F1) and M2 = (K2, Σ, Γ2, ∆2, s2, F2), respectively. Show how to construct the pushdown automaton M = (K, Σ, Γ, ∆, s, F ) that accepts L1L2.

Homework Answers

Answer #1

to construct a PDA that accepts L1L2 we do the following:

step 1:

Making unique final state in M1, to do this,

add a state q0 and transition from all the final states of M1 by reading , popping from stack and pushing .

step 2:

if stack is not empty, empty it. i.e. add a transition from state q0 to itself by reading , popping x (in Σ1 ) from stack and pushing .

step3:

add a transition from q0 to s2 by reading , popping # from stack and pushing #. where # is end of stack symbol.

The obtained PDA accepts L1L2

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT