Question

[20 points] As an example of a PDA look at the one below that accepts the following language (Z is the stack start symbol): {

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

solution:

given data:

The transition function (δ) is       Q x {Σ } x Γ into Q x Γ*.

Where

Q is the set of states

Σ is the set of input symbols

∈ is a null symbol

Γ is the set of pushdown symbols

The transition are shown below

δ(q0,a,Z) =(q1,1Z)

δ(q0,a,Z) =(q3, ƛ)

δ(q0,ƛ,Z) =(q3, ƛ)

δ(q1,a,1) =(q1,11)

δ(q1,b,1) =(q1, ƛ)

δ(q2,b,1) =(q2, ƛ)

δ(q2, , ƛ,Z) =(q3, ƛ)

It is Non-deterministic Push Down Automata(NPDA), Because for the state ‘q0’, input symbol is ‘a’ and Stack symbol is ‘Z’ it was going to two states ‘q1’ and ‘q3’.The transition are shown below.

δ(q0,a,Z) =(q1,1Z)

δ(q0,a,Z) =(q3, ƛ)

please give me thumb up

Add a comment
Know the answer?
Add Answer to:
[20 points] As an example of a PDA look at the one below that accepts the...
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
  • 4. Show that the pda constructed in Example 7.6 accepts the strings aabb and aaabbbb, and that bo...

    4. Show that the pda constructed in Example 7.6 accepts the strings aabb and aaabbbb, and that both strings are in the language generated by the given grammar. EXAMPLE 7.6 Construct a pda that accepts the language generated by a grammar with productions We first transform the grammar into Greibach normal form, changing the productions to A bB, The corresponding automaton will have three states (go, 91,92), with initial state go and final state q2. First, the start symbol S...

  • 1. Using the given details of a PDA with Q = {90, 91, 92, 93}; {...

    1. Using the given details of a PDA with Q = {90, 91, 92, 93}; { = {a, b}; Z = 0; F = {q3} S = {90} and the following transitions construct a PDA. Show all the stack operations for the string "aaaabbbba" and tell whether the string is acceptable or not. (90, a, 0) = (91, 1) (q0, b, 0) = (q3, 1) (91, a, 1) = (92, 1) 5 (91, b, 1) = (92, 1) 5 (92,...

  • Q.3 Maximum score 20 Construct a Non-deterministic PDA that accepts the language L (w: n(w)+n(w) ...

    answer question 3 Q.3 Maximum score 20 Construct a Non-deterministic PDA that accepts the language L (w: n(w)+n(w) n(w) 1 over 2-(a.b.c).Give the rules (in the form of a diagram are acceptable Q.3 Maximum score 20 Construct a Non-deterministic PDA that accepts the language L (w: n(w)+n(w) n(w) 1 over 2-(a.b.c).Give the rules (in the form of a diagram are acceptable

  • Let sigma = {a, b, c}. Draw the transition graph of a npda that accepts the...

    Let sigma = {a, b, c}. Draw the transition graph of a npda that accepts the following language: L = {c(ab)^n a^m c^n: n greaterthanorequalto 1, m greaterthanorequalto 0} Write the sequence of moves done by the npda when the input sequence is w = cabc. Is the string w accepted?

  • 3. [20 points] Give short answers to each of the following parts. Each answer should be...

    3. [20 points] Give short answers to each of the following parts. Each answer should be at most three sentences. Be sure to define any notation that you use. (a) Explain the difference between a DFA and an NFA. (b) Give a regular expression for the language consisting of strings over the alphabet 2-(0, 1) that contains an even number of 0's and an odd number of 1's and does not contain the substring 01. (c) Give the formal definition...

  • Please circle final answer 20 points) Com , contains at least three strings such that the...

    Please circle final answer 20 points) Com , contains at least three strings such that the length of the strings is od facts that everyings function atle ast 30ddorstartBab show below bab; or both. Assume that ΣG-{a,b). Recall the lab wh which decides if strings st art ; or the ite language must contain a string whose length is less tha an also important to hich nhnse lengths are greater than bn and less than or equal to bi ca...

  • Please answer any 7 of them ТОС Answer any 7 from the followings: 1. Regular expression...

    Please answer any 7 of them ТОС Answer any 7 from the followings: 1. Regular expression to NFA: i) ab(aUb)* ii) (aba U a)*ab 2. Explain and construct a generalized NFA, 3. NFA to regular expression 0 3 91 93 8 a 4. DFA to regular expression 011 5. Explain the rules of pumping lemma briefly with an example. 6. Give an example of right linear grammar and left linear grammar. 7. L(G) = {1*20 m >= 1 and >=1}....

  • a). Provide a DFA M such that L(M) = D, and provide an English explanation of...

    a). Provide a DFA M such that L(M) = D, and provide an English explanation of how it works (that is, what each state represents): b). Prove (by induction on the length of the input string) that your DFA accepts the correct inputs (and only the correct inputs). Hint : your explanation in part a) should provide the precise statements that you need to show by induction. For example, you could show by induction on |w| that E2 = {[:],...

  • 6. + 1/5 points Previous Answers LarLinAlg8 2.5.050. The figure below illustrates an example of a...

    6. + 1/5 points Previous Answers LarLinAlg8 2.5.050. The figure below illustrates an example of a Markov chain with reflecting boundaries. 100% 60% 70% si (S2) (S ) 30% 100% ( SA 40% (a) Explain why it is appropriate to say that this type of Markov chain has reflecting boundaries. When the chain reaches S1 or S4, it is certain in the next step to transition to an adjacent state, S2 or Sz respectively. When the chain reaches S2 or...

  • (20 pts) To understand the value of recursion in a programming language: implement the binary search...

    (20 pts) To understand the value of recursion in a programming language: implement the binary search algorithm first as a recursive function and again using a conditional loop. Your program should create an array of characters holding the letters ‘A’ – ‘Z’ and find the index in the array where the letter ‘K’ is stored. You may use any programming language that supports recursion. (5pts) Define syntax and semantics and give an example. (5pts) Why is it important for a...

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