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 17:00
The perimeter of a stage is 116 feet. it is 17 feet wide. how long is it?
Answers: 1
question
Mathematics, 21.06.2019 18:00
Olga used 100 ounces of flour to make 225 muffins. how many ounces of flour will be used to make 300 muffins?
Answers: 2
question
Mathematics, 21.06.2019 19:30
You have 17 cats that live in houses on your street, 24 dogs, 3 fish, and 4 hamsters. what percent of animals on your block are dogs?
Answers: 2
question
Mathematics, 21.06.2019 20:30
Create a question with this scenario you could ask that could be answered only by graphing or using logarithm. david estimated he had about 20 fish in his pond. a year later, there were about 1.5 times as many fish. the year after that, the number of fish increased by a factor of 1.5 again. the number of fish is modeled by f(x)=20(1.5)^x.
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
question
Mathematics, 04.10.2020 14:01
question
English, 04.10.2020 14:01
question
Mathematics, 04.10.2020 14:01
Questions on the website: 13722360