80 likes | 210 Vues
This presentation by Peter Varga and co-authored by Benedek Nagy delves into context-free and context-sensitive grammars, focusing on derivation trees and their depth. It discusses Chomsky normal form, Penttonen normal form, and the implications of rules that equate the lengths of the left and right sides in derivation. The concept of iteration-free normal form is introduced, outlining how any grammar in Penttonen normal form can be transformed into an iteration-free equivalent, preserving language generation. This work enhances our understanding of finite derivation trees in grammar theory.
E N D
A New Normal Form for Context-Sensitive Grammars Presenter: Peter Varga Co-author: Benedek Nagy
Context-Free derivation trees An upper bound can be given for the derivation tree’s depth in case of context-free grammars, if we use Chomsky normal form:
Derivation tree for context-sensitive grammars In the case of context-sensitive grammars a derivation tree can be given as well with the use of Penttonen normal form. In this tree there will be context branches: Penttonen normal form: Aa ABC ABAC
The problem is the following: A derivation of a finite word can be arbitrarily long because of those rules where the length of the left side equals with the length of the right side. Derivation tree for context-sensitive grammars
In this example the depth of the tree for a finite word has to be exponentially large.
Iteration-free normal form • Definition (Iteration-free normal form): A rule set called H is in iteration-free normal form, if H is in Penttonen normal form, and does not contain any context-sensitive iteration with the same context. • Theorem: Any grammar in Penttonen normal form can be derived to a grammar which is in iteration-free normal form, and the original and the derived grammar generates the same language.
The derivation tree with the use of the iteration-free normal form
Summary Context-free grammars Context-sensitive grammars Chomsky normal form Penttonen normal form Iteration-free normal form Finite derivation tree