subject
Mathematics, 10.07.2019 01:30 haileybland8050

Example 7.6 construct a pda that accepts the language generated by a grammar with productions s-asbbla we first transform the grammar into greibach normal form, changing the productions to sab asa|a, bb, b.s-asa]a, a-bb_b-b the corresponding automaton will have three states {go. qı. g: }, with initial state go and final state q2. first, the start symbol s is put on the stack by 3 (go. a, z)= {(gı, s2)} the production s- asa will be simulated in the pda by removing s from the stack and replacing it with sa, while reading a from the input. similarly, the rule sa should cause the pda to read an a while simply removing s. thus, the two productions represented in the pda by are (gi, a, s) = {(q1, sa), (g1, 2)}. analogous manner, the other productions give o, b,a)6(q1,b, b)={(q1,b)},{(q1a)}.5(q1,b, a)={(q1,b)},& (q1,b. b)={(q1,)}. the appearance of the stack start symbol on top of the stack signals the completion of the derivation and the pda is put into its final state by in an the construction of this example can be adapted to other cases, leading to a general result.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 14:30
Aparking lot is to be 400 feet wide and 370 feet deep. how many standard-sized cars fit in this lot considering a double-loaded (w4) two way traffic set up, an angle of 90° and a sw of 9’ 0’’? (do not consider handicapped parking spaces, and consider 15’ for turning aisles). show your work.
Answers: 2
question
Mathematics, 21.06.2019 20:40
Describe the symmetry of the figure. identify lines of symmetry, if any. find the angle and the order of any rotational symmetry.
Answers: 1
question
Mathematics, 21.06.2019 21:30
Yesterday, george drank 1 small bottle and 2 large bottles, for a total of 1,372 grams. the day before , he drank 1 small bottle and 1 large bottle, for the total of 858 grams. how many grams does each bottle hold?
Answers: 1
question
Mathematics, 22.06.2019 02:30
Which statement illustrates the distributive property?
Answers: 2
You know the right answer?
Example 7.6 construct a pda that accepts the language generated by a grammar with productions s-asbb...
Questions
question
Mathematics, 26.10.2020 20:00
question
Mathematics, 26.10.2020 20:00
question
Chemistry, 26.10.2020 20:00
question
Mathematics, 26.10.2020 20:00
question
Social Studies, 26.10.2020 20:00
question
English, 26.10.2020 20:00