Patent ID: 9063949
Filing Date: 2015-06-23
Classification: G06F

Abstract:
1. A method for inferring a sequence of editing operations that were applied to a document to produce an updated version of the document, comprising: determining a minimum edit distance between the document and the updated version of the document; wherein determining the minimum edit distance involves associating a block cost with each contiguous block of characters that is changed by an editing operation associated with the minimum edit distance; using information stored while determining the minimum edit distance to determine the sequence of editing operations, including changes to contiguous blocks of characters, which were used to achieve the minimum edit distance; wherein if the document is a string s wherein the dynamic-programming technique computes minimum edit distances between progressively larger prefixes of s wherein each entry in costs[n][m] is computed by taking a minimum of: costs[n][m−1] plus a character insertion cost that possibly includes a block cost, costs[n−1,m] plus a character deletion cost that possibly includes a block cost, and costs[n−1][m−1] plus a character matching cost which can be zero.