“…G(t, j, k) exactly covers all the patterns of children of n i ; that is, ( 1 ) for every edit script s for t (not deleting n i ), G(t, j, k) contains a path from m j−1 to m k that represents ch(s(t), n i ), and ( 2 ) for every path p from m j−1 to m k in G(t, j, k), there exists an edit script s for t such that ch(s(t), n i ) is represented by p. Similarly, for every siblings n j , n k with j ≤ k, G (t, j, k) exactly covers all the patterns of children of n j,k . Proof(sketch): Condition (1) can easily be shown by induction on the length of s. As for Condition (2), let p be a path from m j−1 to m k in G(t, j, k). Let s be an edit script obtained from p by replacing (i) each leaf edge Step 3 We first show some definitions related to NFA, which is necessary to determine if a path in G(t, j, k) or G (t, j, k) from m j−1 to m k , representing a sequence of children of a node, matches a regular expression.…”