Kuroda normal form

from Wikipedia, the free encyclopedia

The Kuroda normal form is a term used in theoretical computer science that is of interest in connection with context-sensitive languages . It is named after the linguist Sige-Yuki Kuroda and describes a normal form of monotonous grammars , i.e. a subset of monotonous grammars that does not lose any expressiveness compared to the set of all monotonous grammars. The importance of the Kuroda normal form lies in the very simple structure of the productions . Because monotonous grammars and context-sensitive grammars are sometimes not differentiated, the Kuroda normal form is also referred to as the normal form of context-sensitive grammars.

The Kuroda normal form is a generalization of the Chomsky normal form , which is a normal form for context-free grammars.

definition

A formal grammar is in Kuroda normal form (short KNF , not to be confused with "KNF" - conjunctive normal form ) if all productions have the following form:

where , , and variables and a terminal symbol.

If the second and fourth rule forms do not occur, the grammar is in Chomsky normal form .

properties

  • Every grammar in Kuroda normal form is a monotonous grammar .
  • At any monotonic grammar with a monotonic grammar exists in Kuroda normal form, generating the same language, that is, . is then also called a Kuroda normal form of the monotonous grammar .

Conversion of a grammar into Kuroda normal form

Be a monotonous grammar with . A Kuroda normal form of can be constructed like this:

  • All terminal symbols that appear in are replaced by a new variable , and the new productions are introduced for each terminal symbol .
  • Each production of the form is replaced by the following new productions: , for all and . There are new variables.
  • Each production of the mold , with is replaced by the following new productions: for all : for all : and . There are new variables.

The grammar thus generated is in Kuroda normal form and produces the same language as the grammar before.

Révész normal form

Every monotonous grammar in Kuroda normal form can be converted into a context-sensitive grammar in Révész normal form. For this purpose, two new non-terminals are introduced for each production rule of the form and the rule is replaced by four rules:

A context-sensitive grammar is in Révész normal form when all productions have the following form:

Where , and are variables and is a terminal symbol.

For each context-sensitive grammar with a context-sensitive grammar exists in Kuroda normal form, generating the same language, that is, .

literature

  • Benedek Nagy: Derivation Trees for Context-Sensitive Grammars . In: Automata, Formal Languages ​​and Algebraic Systems: Proceedings of AFLAS 2008 . World Scientific Pub Co, 2008, ISBN 981-4317-60-8 , pp. 182 ( limited preview in Google Book search).