摘要 |
PROBLEM TO BE SOLVED: To efficiently compress data on a variable length record by adding a filling character to a former record, making the lengths of the former and later records to be equal when the former record is shorter than the later record, coding the parts of similar values with the former/later records and shorting them. SOLUTION: When a former record 101 is composed of the character string of '0010701A100' and a later record 103 is composed of the character string of '0010803B100B200B300', the data length of the former record 101 is shorter than that of the later record 103, a filling character is added to the former record 101 so that the data lengths become equal. Compression quantity is calculated on all the candidates of the filling character. The filling character whose compression efficiency is the best is decided, information of the decided filling character is held in a compression record and it is compressed. Thus, the compressed record 104 is compressed to the record of 14 bytes constitution against 19 bytes constitution before compression.
|