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

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 12:30, Babyyygggirl26
Nparallelogram lmno, what are the values of x and y? x = 11, y = 14 x = 11, y = 25 x = 55, y = 14 x = 55, y = 25n parallelogram lmno, what are the values of x and y? x = 11, y = 14 x = 11, y = 25 x = 55, y = 14 x = 55, y = 25
Answers: 2
image
Mathematics, 21.06.2019 15:30, mattstudy305
The appalachian trail is a hiking trail that passes through the appalachian mountains. three members of a teen hiking group hiked a section of the trail. the hikers stopped at a rest area and equally shared 3 4 gallon of water. how much water did each person get?
Answers: 1
image
Mathematics, 21.06.2019 19:20, girlydiy17
Thompson and thompson is a steel bolts manufacturing company. their current steel bolts have a mean diameter of 127 millimeters, and a variance of 36. if a random sample of 35 steel bolts is selected, what is the probability that the sample mean would differ from the population mean by greater than 0.5 millimeters? round your answer to four decimal places.
Answers: 3
image
Mathematics, 21.06.2019 20:20, Kelbee781
Each person in an it department of 25 people works on at least one of 3 major projects: system security, program implementation, platform development. 10 people work on system security, 13 work on program implementation, and 12 work on platform development. 4 people work on system security and platform development, 5 people work on program implementation and platform development, and 2 people work on all three projects. how many people work on system security and program implementation?
Answers: 1
You know the right answer?
Example 7.6 construct a pda that accepts the language generated by a grammar with productions s-asbb...

Questions in other subjects:

Konu
Biology, 09.01.2020 19:31