Differential data forming method, program, recording medium, and apparatus
First Claim
1. A differential data forming method comprising:
- a comparing step wherein two new and old files are sequentially compared from heads of the files on a predetermined data unit basis;
a transfer information forming step wherein if a coincidence of the data is determined by said sequential comparison, transfer information showing a position and a data length of the old file is output;
a searching step wherein if a dissidence of the data is determined by said sequential comparison, the old file is searched in both forward and backward directions from a data position where the dissidence has been determined on the old file, thereby searching a portion which coincides with the data of the new file;
a shift information forming step wherein if the coincident portion can be searched in said searching step, shift information up to the coincident portion on the old file is output; and
a replacement information forming step wherein if the coincident portion cannot be searched in said searching step, new data is added to transfer replacement information showing a data length of the dissident portion of the old file at a position until the coincident portion can be searched and resultant transfer replacement information is output.
1 Assignment
0 Petitions
Accused Products
Abstract
Two new and old files are sequentially compared from heads of the files on a predetermined data unit basis. If a data coincidence is discriminated, transfer information showing a position and a data length of the old file is output. If a data dissidence is discriminated by the sequential comparison, the old file is searched in both forward and backward directions from a data position where the dissidence has been discriminated in the old file, thereby searching a portion which coincides with data of the new file. If the coincident portion can be searched, shift information up to the coincident portion on the old file is output. If the coincident portion cannot be searched, new data is added to transfer replacement information showing a length of data of the dissident portion of the old file at a position until the coincident portion can be searched, and the resultant transfer replacement information is output.
27 Citations
18 Claims
-
1. A differential data forming method comprising:
-
a comparing step wherein two new and old files are sequentially compared from heads of the files on a predetermined data unit basis;
a transfer information forming step wherein if a coincidence of the data is determined by said sequential comparison, transfer information showing a position and a data length of the old file is output;
a searching step wherein if a dissidence of the data is determined by said sequential comparison, the old file is searched in both forward and backward directions from a data position where the dissidence has been determined on the old file, thereby searching a portion which coincides with the data of the new file;
a shift information forming step wherein if the coincident portion can be searched in said searching step, shift information up to the coincident portion on the old file is output; and
a replacement information forming step wherein if the coincident portion cannot be searched in said searching step, new data is added to transfer replacement information showing a data length of the dissident portion of the old file at a position until the coincident portion can be searched and resultant transfer replacement information is output. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A program for forming differential data, wherein said program allows a computer to execute:
-
a comparing step wherein two new and old files are sequentially compared from heads of the files on a predetermined data unit basis;
a transfer information forming step wherein if a coincidence of the data is determined by said sequential comparison, transfer information showing a position and a data length of the old file is output;
a searching step wherein if a dissidence of the data is determined by said sequential comparison, the old file is searched in both forward and backward directions from a data position where the dissidence has been determined on the old file, thereby searching a portion which coincides with the data of the new file;
a shift information forming step wherein if the coincident portion can be searched in said searching step, shift information up to the coincident portion on the old file is output; and
a replacement information forming step wherein if the coincident portion cannot be searched in said searching step, new data is added to transfer replacement information showing a data length of the dissident portion of the old file at a position until the coincident portion can be searched and resultant transfer replacement information is output. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable recording medium which stores a program for forming differential data, wherein said program allows a computer to execute:
-
a comparing step wherein two new and old files are sequentially compared from heads of the files on a predetermined data unit basis;
a transfer information forming step wherein if a coincidence of the data is determined by said sequential comparison, transfer information showing a position and a data length of the old file is output;
a searching step wherein if a dissidence of the data is determined by said sequential comparison, the old file is searched in both forward and backward directions from a data position where the dissidence has been determined on the old file, thereby searching a portion which coincides with the data of the new file;
.a shift information forming step wherein if the coincident portion can be searched in said searching step, shift information up to the coincident portion on the old file is output; and
a replacement information forming step wherein if the coincident portion cannot be searched in said searching step, new data is added to transfer replacement information showing a data length of the dissident portion of the old file at a position until the coincident portion can be searched and resultant transfer replacement information is output.
-
-
18. A differential data forming apparatus comprising:
-
a data comparing unit which sequentially compares two new and old files from heads of the files on a predetermined data unit basis;
a transfer information forming unit which, if a coincidence of the data is determined by said data comparing unit, outputs transfer information showing a position and a data length of the old file;
a coincident portion search unit which, if a dissidence of the data is determined by said data comparing unit, searches the old file in both forward and backward directions from a data position where the dissidence has been determined on the old file, thereby searching a portion which coincides with the data of the new file;
a shift information forming unit which, if the coincident portion can be searched by said coincident portion search unit, outputs shift information up to the coincident portion on the old file; and
a replacement information forming unit which, if the coincident portion cannot be searched by said coincident portion search unit, adds new data to transfer replacement information showing a data length of the dissident portion of the old file at a position until the coincident portion can be searched and outputs resultant transfer replacement information.
-
Specification