Question: EXAMPLE 3 . 1 4 The grammar G = ( { S , A , B } , { a , b } , S

EXAMPLE 3.14
The grammar G=({S,A,B},{a,b},S,P) with productions SA,
AaB|,|
BAb,
is not regular. Although every production is either in right-linear or left-linear form, the grammar itself is neither right-linear nor leftlinear, and therefore is not regular. The grammar is an example of a linear grammar. A linear grammar is a grammar in which at most one variable can occur on the right side of any production, without restriction on the position of this variable. Clearly, a regular grammar is always linear, but not all linear grammars are regular.
 EXAMPLE 3.14 The grammar G=({S,A,B},{a,b},S,P) with productions SA, AaB|,| BAb, is

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!