1. Graph Grammar Induction as a Parser-Controlled Heuristic Search Process
- Author
-
Fürst, Luka, Mernik, Marjan, and Mahnič, Viljan
- Subjects
TheoryofComputation_MATHEMATICALLOGICANDFORMALLANGUAGES ,Computer Science::Computation and Language (Computational Linguistics and Natural Language and Speech Processing) ,Computer Science::Formal Languages and Automata Theory - Abstract
A graph grammar is a generative description of a graph language (a possibly infinite set of graphs). In this paper, we present a novel algorithm for inducing a graph grammar from a given set of 'positive' and 'negative' graphs. The algorithm is guaranteed to produce a grammar that can generate all of the positive and none of the negative input graphs. Driven by a heuristic specific-to-general search process, the algorithm tries to find a small grammar that generalizes beyond the positive input set. During the search, the algorithm employs a graph grammar parser to eliminate the candidate grammars that can generate at least one negative input graph. We validate our method by inducing grammars for chemical structural formulas and flowcharts and thereby show its potential applicability to chemical engineering and visual programming.
- Published
- 2012