The Grammatical Inference Problem for the Szilard Languages of Linear Grammars
The Grammatical Inference Problem for the Szilard Languages of Linear Grammars
复制标题
线性语法的Szilard语言的语法推理问题
DOI:
10.1016/0020-0190(90)90074-8
复制
发表时间:
1990
期刊:
影响因子:
--
通讯作者:
E. Mäkinen
中科院分区:
文献类型:
--
作者:
E. Mäkinen
The traditional grammatical inference problem is to identify a grammar G that generates the language defined by the samples. Recently (see eg [8, 9, 12]), there has been an increased interest in inferring also the structure of the grammars in question, ie, among the many grammars generating L (G) we desire the one having some specific derivational structure. In [8, 9, 12] the structure of grammars is described by using derivation trees. Another method for describing the structure of a grammar is to use Szilard languages. The Szilard language of a grammar contains a word for every terminating derivation according to the productions of the grammar. The Szilard language of a context-free grammar is in general non-contextfree, but the Szilard language of each linear grammar is regular [5-71. Besides the (general) Szilard language of a context-free grammar, we can define Szilard languages related to the leftmost or rightmost derivations. These languages are always deterministic context-free languages [5, 7]. In this paper we deal with the Szilard languages of linear grammars. In this case the (general) Szilard language coincides the Szilard languages related to the leftmost and rightmost derivations. We show that the inference problem related to the structure of linear grammars can be solved by a conceptually simple algorithm in linear time. Our approach makes it possible to reduce the problem of inferring the structure of a context-free grammar back to the normal grammatical inference problem. The algorithm we present is also of interest for the general theory of grammatical inference. Namely, the class of Szilard languages of linear grammars is a proper subclass of zero-reversible languages. Angluin [l] has presented an efficient algorithm to infer zero-reversible regular languages from positive samples. The time complexity of Angluin’s algorithm is dominated by the time complexity of the set union problem. In addition to the fact that our algorithm is conceptually simpler than Angluin’s algorithm, it is asymptotically faster.