Compactly encoding unstructured inputs with differential compression
Miklós Ajtai, Randal C. Burns, Ronald Fagin et al. · Journal of the ACM · 2002
The subject of this article is differential compression , the algorithmic task of finding common strings between versions of data and using them to encode one version compactly by describing it as a set of changes from its companion. A main goal of this work is to present new differencing algorithms that (i) operate at a fine granularity (the atomic unit of change), (ii) make no assumptions about the format or alignment of input data, and (iii) in practice use linear time, use constant space, and give good compression. We present new algorithms, which do not always compress optimally but use considerably less time or space than existing algorithms. One new algorithm runs in O ( n ) time and O (1) space in the worst case (where each unit of space contains [log n ] bits), as compared to algorithms that run in O ( n ) time and O ( n ) space or in O ( n 2 ) time and O (1) space. We introduce two new techniques for differential compression and apply these to give additional algorithms that improve compression and time performance. We experimentally explore the properties of our algorithms by running them on actual versioned data. Finally, we present theoretical results that limit the compression power of differencing algorithms that are restricted to making only a single pass over the data.
Cited by 85 works. doi:10.1145/567112.567116 Open-access PDF
Authors
References
- Information Theory and Reliable Communication.
- The Art of Computer Programming
- The Art of Computer Programming: Volume 3: Sorting and Searching
- A universal algorithm for sequential data compression
- The String-to-String Correction Problem
- Compression of individual sequences via variable-rate coding
- Linear pattern matching algorithms
- Algorithms on Strings, Trees and Sequences
- Information Theory and Reliable Communication
- Algorithms on strings, trees, and sequences computer science and computational biology