Question

Please Help with this questions with short explanation thank you :)

Consider the pushdown automaton with the following transition rules: 1.8(0,0,20) = {(q,XZ0)} 2. 8(9,0,X) = {(q,XX)} 3. 8(q,1,Here are the transitions of a deterministic pushdown automaton. The start state is qo, and f is the accepting state. a E Stat

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CONCEPT FOR PDA-

PDA STANDS FOR PUSH DOWN AUTOMATA. THIS AUTOMATA IS USED TO GENERATE CONTEXT FREE GRAMMER. IN THIS WE HAVE A STACK AND A PUSH AND A POP OPERATION.

A PDA IS DEFINED USING THE FOLLOWING PARAMETERS-

Q is any general state.
? is the set of input symbols
q0 is the initial state
Z it denotes the stack symbol which is usually present in stack
F is the set of final states
d is a transition function which maps Q x {S ? ?} x G into Q x G*. In a given state, PDA will read input symbol and move to a new state and change the symbol of stack.

Question 1 -

answer - option c

Explanation -

Try to understand that we can carry as many as epsilon transitions as we want .

so , whenever we carry epsilon transition with X at top it will pop that X.

so , option A is correct as by following transitions

1. epsilon and pop X

2. from 1 insert a X

3. epsilon and pop X

Similarly option B is also correct

by just a single transition

from 1 insert a X

option c is incorrect because only this option have more number of X as compared to more number of 1 which is not possible as one 1 can produce only 1 X

option d is correct by many epsilon transitions

Question 2

Answer-

option d is correct because

Explanation -

initially the string will b in q0 state

To go to q3 you first have to reach the q2 state

that can only be reached if the string starts with a "b"

so option d is correct

THANK YOU FOR USING CHEGG. KEEP CHEGGING.

ASK ANY DOUBTS IN COMMENTS

Add a comment
Know the answer?
Add Answer to:
Please Help with this questions with short explanation thank you :) Consider the pushdown automaton with...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Here are the transitions of a deterministic pushdown automaton. The start state is 90, and f...

    Here are the transitions of a deterministic pushdown automaton. The start state is 90, and f is the accepting state. b E State-Symbol 90-Zo (91AAZO) (92,BZO) (8,8) 91-A (91,AAA) (91) 91-20 (90-20) 42-B (93.5) (92,BB) 92-20 (90,20) 93-B (926) 93-20 (91,AZO) Identify below the one input string that the PDA accepts. babba bababb abba babb

  • As you know from Project 4, McCormick & Company is considering building a new factory in...

    As you know from Project 4, McCormick & Company is considering building a new factory in Largo, Maryland. McCormick & Company decided to offer $4,424,000 to obtain the land for this project. The new factory will require an initial investment of $350 million to build the new plant and purchase equipment. You have been asked to continue your work from project 4 with a full analysis of the proposed factory, including the start-up costs, the projected net cash flows from...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT