This paper deals with a class of grammars which is called tree-graph grammar (TGG) and its attributed version (ATGG, attributed-tree-graph grammar). The features of this class of grammars include its power to generate useful graphs and its fast parser. Principally, the graphs that can be characterized by these grammars are a subset of hierarchical graphs, including planar graphs. Also these TGG's (and ATGG's) can generate graphs describing, for example, textures, flow charts, circuit diagrams, etc. It is proved that the class of context-free graph grammars (CFGG) is a subclass of TGG's. Also it is shown that TGG can generate graphs which can not be produced by CFGG's, for example, planar graphs. Moreover, a parser for ATGG's is proposed. This parser has time complexity of 0(n4) (n is the number of nodes of the graph plus the number of superimposed nodes), and space complexity of 0(n2). For the special case where the starting node is given, the time complexity is reduced to 0(n3). Finally, an application of ATGG's to the recognition of circuit diagrams is presented.
[1]
Russell A. Kirsch,et al.
Computer Interpretation of English Text and Picture Patterns
,
1964,
IEEE Trans. Electron. Comput..
[2]
John F. Jarvis.
The line drawing editor:Schematic diagram editing using pattern recognition technique
,
1977
.
[3]
R. Narasimhan,et al.
Labeling Schemata and Synctactic Descriptions of Pictures
,
1964,
Inf. Control..
[4]
Hartmut Ehrig,et al.
Graph-Grammars and Their Application to Computer Science and Biology
,
1978,
Lecture Notes in Computer Science.
[5]
King-Sun Fu,et al.
Syntactic Pattern Recognition And Applications
,
1968
.
[6]
Carlo Ghezzi,et al.
Context-Free Graph Grammars
,
1978,
Inf. Control..
[7]
Theodosios Pavlidis,et al.
Structural pattern recognition
,
1977
.