A linear time, constant space differencing algorithm
Randal C. Burns, Darrell D. E. Long · IEEE International Performance, Computing, and Communications Conference · 2002
An efficient differencing algorithm can be used to compress version of files for both transmission over low bandwidth channels and compact storage. This can greatly reduce network traffic and execution time for distributed applications which include software distribution, source code control, file system replication, and data backup and restore. An algorithm for such applications needs to be both general and efficient; able to compress binary inputs in linear time. We present such an algorithm for differencing files at the granularity of a byte. The algorithm uses constant memory and handles arbitrarily large input files. While the algorithm makes minor sacrifices in compression to attain linear runtime performance, it outperforms the byte-wise differencing algorithms that we have encountered in the literature on all inputs.
Cited by 17 works. doi:10.1109/pccc.1997.581547
Authors
References
- The String-to-String Correction Problem
- Measurements of a distributed file system
- The source code control system
- Efficient randomized pattern-matching algorithms
- Rcs — a system for version control
- A file comparison program
- The string-to-string correction problem with block moves
- A new distance metric on strings computable in linear time
- Delta storage for arbitrary non-text files
- A space-efficient technique for recording versions of data