A derivation in a transformational system such as a graph grammar may be redundant in the sense that the exact order of the transformations may not affect the final outcome; all that matters is that each transformation, when applied, is applied to the correct substructure. By taking advantage of this redundancy, we can develop an efficient encoding scheme for such derivations. This encoding scheme has a number of diverse applications. It can be used in efficient enumeration of combinatorial objects or for compact representation of program and data structure transformations. It can also be used to derive lower bounds on lengths of derivations. It is shown, for example, that $\Omega ( n \log n )$ applications of the associative and commutative laws are required in the worst case to transform an n-variable expression over a binary associative, commutative operation into some other equivalent expression. Similarly, it is shown that $\Omega ( n\log n )$ “diagonal flips” are required in the worst case to transf...
[1]
Robert E. Tarjan,et al.
Rotation distance, triangulations, and hyperbolic geometry
,
1986,
STOC '86.
[2]
W. T. Tutte.
A THEOREM ON PLANAR GRAPHS
,
1956
.
[3]
Manfred Nagl,et al.
Graph-Grammars and Their Application to Computer Science
,
1982,
Lecture Notes in Computer Science.
[4]
Derick Wood,et al.
A Note on Some Tree Similarity Measures
,
1982,
Inf. Process. Lett..