Byte-level file differencing and updating algorithms
Abstract
A method for performing differencing and updating between electronic files is provided. A byte-level file differencing algorithm receives two byte streams corresponding to an original file and a new file. The new file includes updated and revised versions of the original file. The file differencing algorithm determines a longest common sub-string (LCS) between the two byte streams and divides each of the two byte streams into sub-streams. The sub-streams include the LCS along with prefix and suffix sub-streams to the LCS. The file differencing algorithm then recursively determines an LCS and divides each sub-stream until a size of the sub-streams is less than a pre-specified size. Byte-level differences are then identified between each of the corresponding sub-streams. Further, the file differencing algorithm defines a protocol for structuring a delta file by using a set of operation codes and a variable length integer format to eliminate redundant information in the delta file. Using this protocol, the file differencing algorithm generates the delta file including an operation array that codes the identified byte-level differences.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 24 · Forward citations: 84.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system for updating electronic files comprising byte-level file differencing and updating (FDU) algorithms, wherein the file differencing algorithm of the FDU algorithms is hosted on a first device, the file differencing algorithm: receiving two byte streams including byte streams corresponding to an original file and a new file, wherein the new file includes updated and revised versions of the original file; determining a longest common sub-string (LCS) between the two byte streams and divides each of the two byte streams into sub-streams, wherein a first sub-stream is a prefix and a second
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 84 total)
References Cited — Backward Prior Art (24)
Non-Patent Literature (4)
- Ajtai et al., "Compatly Encoding Unstructured Inputs with Differential Compression", IBM Almaden Research Center, 44 pages.
- Burns et al., "In-Place Reconstruction of Dalta Compressed Files", IBM Almaden Research Center, 9 pages.
- Burns et al., "In-Place Reconstruction of Version Differences", IBM Almaden Research Center, 25 pages.
- Walter F. Tichy, "The String-to-String Correction Problem with Block Move", ACM Transaction On Computer Systems, vol. 2, No. 4, Nov. 1984, pp. 309-321.