next up previous
Next: Cost Model Up: Model and Problem Definition Previous: Model and Problem Definition

Edit Operations and Edit Scripts

 

In the following, we will assume that an edit operation e is applied to , and produces the tree . We write this as . We consider the following six edit operations:

In addition to the above tree edit operations, one may wish to consider operations such as a subtree delete operation that deletes all nodes in a given subtree. Similarly, one could define a subtree merge operation that merges two or more subtrees. We do not consider such more complex edit operations in this paper, but note that some of these operations, (e.g., subtree deletes) may be detected by post-processing the output of our algorithm.

We define an edit script to be a sequence of zero or more edit operations that can be applied in the order in which they occur in the sequence. That is, given a tree , a sequence of edit operations is an edit script if there exist trees such that . We say that the edit script transforms to , and write .

  
Figure 1: Edit operations on labeled trees

 


next up previous
Next: Cost Model Up: Model and Problem Definition Previous: Model and Problem Definition

Sudarshan S. Chawathe
Sat Feb 22 12:28:02 PST 1997