انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

FA into RG

Share |
الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 2
أستاذ المادة محمد عبيد مهدي الجبوري       28/05/2018 19:34:31
Right-Linear Grammar
A grammar is right-linear, if all productions have one of the two forms:
V ? T* V or
V ? T*
We can have only one variable-symbol on the left-hand side and on the right-hand side, we have at most one variable, and this is at the far right.
Left-Linear Grammar
A grammar is left-linear, if all productions have one of the two forms:
V ? V T* or
V ? T*
We can have only one variable-symbol on the left-hand side and on the right-hand side, we have at most one variable, and this is at the far left.
Regular Grammar
A grammar is regular, if it is either right-linear or left-linear.
This means, all productions in the grammar have to be completely left-linear or completely right-linear but not mixed left-linear and right-linear.
Linear Grammar
Grammars, in which each rule is in right-linear or left-linear form, i.e. left-linear and right-linear rules can be mixed, is called linear.
Linear grammars are a more general class of grammars than regular grammars.
Right-Linear Grammar
A grammar is right-linear, if all productions have one of the two forms:
V ? T* V or
V ? T*
We can have only one variable-symbol on the left-hand side and on the right-hand side, we have at most one variable, and this is at the far right.
Left-Linear Grammar
A grammar is left-linear, if all productions have one of the two forms:
V ? V T* or
V ? T*
We can have only one variable-symbol on the left-hand side and on the right-hand side, we have at most one variable, and this is at the far left.
Regular Grammar
A grammar is regular, if it is either right-linear or left-linear.
This means, all productions in the grammar have to be completely left-linear or completely right-linear but not mixed left-linear and right-linear.
Linear Grammar
Grammars, in which each rule is in right-linear or left-linear form, i.e. left-linear and right-linear rules can be mixed, is called linear.
Linear grammars are a more general class of grammars than regular grammars.


Right-Linear Grammar
A grammar is right-linear, if all productions have one of the two forms:
V ? T* V or
V ? T*
We can have only one variable-symbol on the left-hand side and on the right-hand side, we have at most one variable, and this is at the far right.
Left-Linear Grammar
A grammar is left-linear, if all productions have one of the two forms:
V ? V T* or
V ? T*
We can have only one variable-symbol on the left-hand side and on the right-hand side, we have at most one variable, and this is at the far left.
Regular Grammar
A grammar is regular, if it is either right-linear or left-linear.
This means, all productions in the grammar have to be completely left-linear or completely right-linear but not mixed left-linear and right-linear.
Linear Grammar
Grammars, in which each rule is in right-linear or left-linear form, i.e. left-linear and right-linear rules can be mixed, is called linear.
Linear grammars are a more general class of grammars than regular grammars.


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم