Question: Let G r = be a right - linear regular grammar. We want to convert it to an equivalent left - linear regular grammar G

Let Gr= be a right-linear regular grammar. We want to convert it to an equivalent
left-linear regular grammar Gl. Naturally, we need L(Gl)=L(Gr).
3+5+2+4=14
(a) Note that just flipping the terminal and non-terminal of a production AaB to ABa may
not work. For example, for Gr-={AaB,BaB|bB|lon} show that
Ba|Bb|lon is not the corresponding left-linear grammar (as is misguidedly claimed at: How to
convert right linear grammar to left linear grammar?). That is,L(Gl)L(Gr).
(b) Design a process to convert a Gr to an equivalent Gl.
(c) Illustrate your process with the grammar Gr in Q(2a).
(d) Prove the correctness of your suggested process in Q (2b).
 Let Gr= be a right-linear regular grammar. We want to convert

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!