Method and apparatus for finding differences between two computer files efficiently in linear time and for using these differences to update computer files
Abstract
A method of updating a computer file from an old file into a new file comprises blocking the new file and the old file into fixed-size blocks, maintaining a window (collection of contiguous blocks) for each file on which lookup preprocessing has been performed, and performing match processing on each new file block in turn (comparing against both the old and new windows) using a key-sampling technique combined with approximate matching. For each new file block, the match information is then optimized for coding efficiency and encoded into a patch file that describes an algorithm for converting the old file into the new file. The patch file application method and apparatus then performs the algorithm described in the patch file. The method uses a fixed amount of random-access memory regardless of the sizes of the two files and uses no temporary mass storage. In addition, the method has a running time roughly proportional to the size of the new file and allows the use of parallel processing to reduce the time required. The system and method produce patch files which are smaller than prior systems and methods, and allow the operator of the apparatus to perform an efficiency/effectiven
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 18.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for converting an OLD computer file into an updated NEW computer file, said method comprising the steps of: a. identifying differences between said OLD file and a NEW computer file by passing both files through a patch build program, the patch build program comprising the steps of: i. identifying matches between the OLD file and the NEW computer file by (a). dividing the NEW computer file into blocks of fixed size, (b). successively comparing each block to a contiguous group of blocks of fixed size in the OLD file, and (c). scanning each pair of adjacent blocks of the NEW computer fil
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 18 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (1)
- Paul Heckel, A Technique for Isolating Differences Between Files, Communications of the ACM, Program Techniques, Apr. 1978, vol. 21, No. 4, pp. 264-268.