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 15:30
The function ƒ is defined by ƒ(x) = (x + 3)(x + 1). the graph of ƒ in the xy-plane is a parabola. which interval contains the x-coordinate of the vertex of the graph of ƒ?
Answers: 2
question
Mathematics, 21.06.2019 17:30
The dolphins at the webster are fed 1/2 of a bucket of fish each day the sea otters are fed 1/2 as much fish as the dolphins how many buckets of fish are the sea fed each day? simplify you answer and write it as a proper fraction or as a whole or mixed number
Answers: 1
question
Mathematics, 21.06.2019 22:30
James wants to promote his band on the internet. site a offers website hosting for $4.95 per month with a $49.95 startup fee. site b offers website hosting for $9.95 per month with no startup fee. for how many months would james need to keep the website for site a to be a better choice than site b?
Answers: 1
question
Mathematics, 22.06.2019 00:30
Javier bought a painting for $150. each year, the painting's value increases by a factor of 1.15. which expression gives the painting's value after 77 years?
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, 13.11.2020 05:30
question
Mathematics, 13.11.2020 05:30
question
Mathematics, 13.11.2020 05:30
question
Mathematics, 13.11.2020 05:30
Questions on the website: 13722363