Question: Exercise 7 . 1 . 8 : Let G be an epsilon - production free grammar whose total length of production bodies is n .

Exercise 7.1.8: Let G be an epsilon-production free grammar whose total length of production bodies is n. We convert G to CNF. a) Show that the CNF grammar has at most O(n^2) productions. b) Show that it is possible for the CNF grammar to have a number of productions proportional to n^2. Hint Consider the construction that eliminates unit productions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!