Question

Q1) Consider the following push down automaton (PDA). wak READ, PUSH bREAD ACCEPT READ,ab REJECT b) What is the language accepted by this PDA?

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

Start-> Readi →Push b ReadPugh b Read 2-ל push b US a a A PoPPed b 2eod 3 -> a -> PoP a A accip Read- a → Pop POP 2bbba ba 2 3tart - 2o 1push bb a ba A start Read 1 ->push b Read -push b2ead 2-> push b PopI eod POP 2 Acept3 start → Read 1 → push b Read 2-s Push b-> eead 2-> Push b . Read 2-)Pushb Veb POP 2

Add a comment
Know the answer?
Add Answer to:
Q1) Consider the following push down automaton (PDA). wak READ, PUSH bREAD ACCEPT READ,ab REJECT b)...
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
  • Consider the following pushdown automaton A: 1, push x O, pop x 1, € / $...

    Consider the following pushdown automaton A: 1, push x O, pop x 1, € / $ E, £ / € . E,$/E start 01 92 Which of the following words are accepted by A? (Select all and only correct answers. Incorrect ones incur a penalty.) 1 11000 11100 € 1100 110

  • Theory of Computation - Push Down Automata (PDA) and Context Free Grammars (CFG) Problem 1. From...

    Theory of Computation - Push Down Automata (PDA) and Context Free Grammars (CFG) Problem 1. From a language description to a PDA Show state diagrams of PDAs for the following languages: a. The set of strings over the alphabet fa, b) with twice as many a's as b's. Hint: in class, we showed a PDA when the number of as is the same as the number of bs, based on the idea of a counter. + Can we use a...

  • QUESTION 4 What language does this final state PDA accept? / Is the start stack symbol...

    QUESTION 4 What language does this final state PDA accept? / Is the start stack symbol and F is the final state) (S.a.X.nop,S) (S,b,X,nop,F) OO None of the choices O ab O aab ab QUESTION 5 Below is an empty stack PDA (X is the start stack symbol. O is the start state) with three transition rules: Rule1: (0,a.X.push(0,0) Rule2: (0,,X.pop,1) Rule3: (1.b.X.pop.1) Which of the following sequence of PDA transitions show that the string ab is valid ? Rulei,...

  • 1. Consider the alphabet {a,b,c}. Construct a finite automaton that accepts the language described by the...

    1. Consider the alphabet {a,b,c}. Construct a finite automaton that accepts the language described by the following regular expression. 6* (ab U bc)(aa)* ccb* Which of the following strings are in the language: bccc, babbcaacc, cbcaaaaccbb, and bbbbaaaaccccbbb (Give reasons for why the string are or are not in the language). 2. Let G be a context free grammar in Chomsky normal form. Let w be a string produced by that grammar with W = n 1. Prove that the...

  • 7.1 12) What language is accepted by the pda M = ({q0,q1,q2,q3,q4,q5}, {a,b}, {0,1,z}, , q0,...

    7.1 12) What language is accepted by the pda M = ({q0,q1,q2,q3,q4,q5}, {a,b}, {0,1,z}, , q0, z, {q5}), with (q0,b,z) = {(q1,1z)}, (q1,b,1)= {(q2, 11)}, (q2,a,1)= {(q3, )}, (q3,a,1)= {(q4, )}, (q4,a,z)= {(q4, z), (q5, z)} We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were...

  • related to theory of automation. Thank you. 8- Consider the Following GTG: a) Find an equivalent GTG with only 2 states....

    related to theory of automation. Thank you. 8- Consider the Following GTG: a) Find an equivalent GTG with only 2 states. (5 Points) b) What is the language accepted by this graph.(15 Points) q1 q2 9-What language is accepted by the following GTG? (10 Points) a + b a + b q1 a + b qo q2 a + b+c 8- Consider the Following GTG: a) Find an equivalent GTG with only 2 states. (5 Points) b) What is the...

  • Question 12 2 pts You are given a machine as shown below: START PUSH, 6 READ...

    Question 12 2 pts You are given a machine as shown below: START PUSH, 6 READ PUSH, b POP POP POP ACCEPT Using the approach discussed in the lecture video or follow the example in the textbook from page 480 to page 482, trace the execution of the input string on this machine:"abbaba". At every step, name the current STATE and write down the contents on the TAPE, STACK1, and STACK2. Then answer the following question: When the machine reaches...

  • 1. Who are language descriptions intended for? Consider the following grammar: ab b | b a...

    1. Who are language descriptions intended for? Consider the following grammar: ab b | b a | a Which of the following sentences are in the language generated by this grammar? (DONE) a) baab ==> YES b) bbbab ==> NO c) bbaaaaaS ==> NO d) bbaab ==> YES 2. Write a BNF grammar for the language consisting of binary strings (any combination of 0s and 1s) of at least 2 digits.

  • 1. Consider the following grammar A - aB B-Sb (a) Show a derivation tree for the...

    1. Consider the following grammar A - aB B-Sb (a) Show a derivation tree for the string aabbbb using the grammar. (b) Give an English description of the language generated by the grammar 2. Let G be the grammar below: S-ASB ab | SS (a) Show that G is ambiguous. (b) Construct an unambiguous grammar equivalent to G. 3. Find a context free grammar for the language L3- fa"b"c+m :n,m21) 4. Find a context free grammar for the language L4...

  • Question 15 2 pts You are given a machine as shown below: START PUSH26 READ PUSH,...

    Question 15 2 pts You are given a machine as shown below: START PUSH26 READ PUSH, b POP2 POP POP ACCEPT Using the approach discussed in the lecture video or follow the example in the textbook from page 480 to page 482, trace the execution of the input string on this machine: "bbaaa". At every step, name the current STATE and write down the contents on the TAPE, STACK1, and STACK2. Then answer the following question: When the machine reaches...

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