JPH03232016A - Method and device for data compression - Google Patents

Method and device for data compression

Info

Publication number
JPH03232016A
JPH03232016A JP2027106A JP2710690A JPH03232016A JP H03232016 A JPH03232016 A JP H03232016A JP 2027106 A JP2027106 A JP 2027106A JP 2710690 A JP2710690 A JP 2710690A JP H03232016 A JPH03232016 A JP H03232016A
Authority
JP
Japan
Prior art keywords
data
record
same
compressed
repetitions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2027106A
Other languages
Japanese (ja)
Inventor
Hiroko Koyamate
小山手 ひろ子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2027106A priority Critical patent/JPH03232016A/en
Publication of JPH03232016A publication Critical patent/JPH03232016A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、データ記憶装置にデータを記録する際の、デ
ータ圧縮方法およびデータ圧縮装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a data compression method and a data compression device when recording data in a data storage device.

(従来の技術) 従来、信号の種類が少なく、同一記号の長い連がしばし
ば出現するようなデータの圧縮方法として、連長法が利
用されている。第3図は従来のデータ圧縮装置のブロッ
クフローチャートを示している。第3図において、51
は第1のデータ、52はデータ圧縮装置、53はデータ
読み取り手段、54はレコード比較手段、55はレコー
ド計数手段、56はデータ書き込み手段、57は第2の
データである。
(Prior Art) Conventionally, a run length method has been used as a method for compressing data in which there are few types of signals and long runs of the same symbol often appear. FIG. 3 shows a block flowchart of a conventional data compression device. In Figure 3, 51
is first data, 52 is a data compression device, 53 is data reading means, 54 is record comparing means, 55 is record counting means, 56 is data writing means, and 57 is second data.

第4図は従来のデータ圧縮方法によって圧縮されたデー
タの模式図であり、41aは第1のレコード、41bは
第2のレコード、42は第1のデータ51の中の同一レ
コードの並び、43は圧縮開始を示す符号、44は同一
レコードの繰り返し回数、45は同一レコードの並び4
2の中のルコードである。51と57はそれぞれ第1の
データ、第2のデータで、第3図と同じものである。
FIG. 4 is a schematic diagram of data compressed by a conventional data compression method, where 41a is a first record, 41b is a second record, 42 is a sequence of identical records in the first data 51, and 43 is a code indicating the start of compression, 44 is the number of repetitions of the same record, and 45 is the sequence 4 of the same records.
This is the code in 2. 51 and 57 are first data and second data, respectively, which are the same as in FIG.

次に従来例の動作について説明する。まずデータ読み取
り手段53によって第1のデータ51をルコード単位で
読み取る。次にレコード比較手段54によって、第2の
レコード41bをその直前の第1のレコード41aと比
較する。第2のレコード41bが第1のレコード41a
と同一である場合は同一レコードの並び42が検出され
たとみなし、レコード計数手段55によって、同一レコ
ードの繰り返し回数44を計数する。第2のレコード4
1bが第1のレコード41aと異なっている場合は同一
レコードの並び42の終わりが検出されたとみなし、デ
ータ書き込み手段56によって、第2のデータ57を書
き込み。
Next, the operation of the conventional example will be explained. First, the data reading means 53 reads the first data 51 in code units. Next, the record comparing means 54 compares the second record 41b with the immediately preceding first record 41a. The second record 41b is the first record 41a
If it is the same as , it is assumed that a sequence 42 of the same records has been detected, and the record counting means 55 counts the number of repetitions 44 of the same records. second record 4
1b is different from the first record 41a, it is assumed that the end of the sequence 42 of the same records has been detected, and the data writing means 56 writes the second data 57.

同一レコードの繰り返し回数44を初期値に戻す。The number of repetitions 44 of the same record is returned to the initial value.

この際、同一レコードの繰り返し回数44が予め定めら
れた数より小さければ、第2のデータ57として同一レ
コードの繰り返し回数44と同じ回数分。
At this time, if the number of repetitions 44 of the same record is smaller than the predetermined number, the second data 57 is the same number of times as the number of repetitions 44 of the same record.

第1のレコード41aを書き込む。同一レコードの繰り
返し回数44が予め定められた数を超えていれば、第2
のデータ57として圧縮開始を示す符号43と同一レコ
ードの繰り返し回数44と第1のレコード41aとを書
き込む。
Write the first record 41a. If the number of repetitions 44 of the same record exceeds a predetermined number, the second
As data 57, a code 43 indicating the start of compression, the number of repetitions 44 of the same record, and the first record 41a are written.

以下、その繰り返しにより、データが圧縮される。Thereafter, data is compressed by repeating this process.

(発明が解決しようとする課題) しかしながら、上記従来の構成では、類似のレコードが
連続するようなデータや、各レコードが規則的に変化す
るようなデータでは同一レコードの並び42が検出され
ないため、データの圧縮が行えないという問題があった
(Problem to be Solved by the Invention) However, in the conventional configuration described above, the sequence 42 of identical records is not detected in data where similar records are consecutive or where each record changes regularly. There was a problem that data could not be compressed.

本発明は上記従来の問題点を解決するもので、レコード
間の類似性や、レコードの配列に規則性を持つデータを
圧縮することのできるデータ圧縮装置を提供することを
目的とするものである。
The present invention solves the above conventional problems, and aims to provide a data compression device that can compress data that has similarities between records and regularity in the arrangement of records. .

(課題を解決するための手段) 本発明は上記目的を達成するために、データ圧縮装置は
データの各レコードを予め定められた規則にしたがって
分割する手段を備えているものである。
(Means for Solving the Problems) In order to achieve the above object, the present invention provides a data compression device equipped with means for dividing each record of data according to a predetermined rule.

(作 用) したがって、本発明によれば、データの各レコードから
冗長度の大きい部分を分離してから圧縮するため、圧縮
率を上げることができる。
(Function) Therefore, according to the present invention, the compression ratio can be increased because a portion with a high degree of redundancy is separated from each record of data and then compressed.

(実施例) 第1図は本発明の一実施例におけるデータ圧縮装置のブ
ロックフローチャートを示すものである。
(Embodiment) FIG. 1 shows a block flowchart of a data compression apparatus in an embodiment of the present invention.

第1図において、11は第1のデータ、12はデータ圧
縮装置、13はデータ読み取り手段、14はレコード分
割手段、15は分割されたレコードの比較手段、16は
分割されたレコードの計数手段、17はデータ書き込み
手段、18は第2のデータである。
In FIG. 1, 11 is first data, 12 is a data compression device, 13 is data reading means, 14 is record dividing means, 15 is divided record comparing means, 16 is divided record counting means, 17 is data writing means, and 18 is second data.

第2図は本発明の一実施例における実数データ圧縮方法
によって圧縮されたデータの模式図である。第2図にお
いて、31は実数データ、32は分割されたデータの指
数部、32aは第1の指数部、32bは第2の指数部、
33は圧縮された指数部、34は分割されたデータの仮
数部、35は圧縮された仮数部、36は圧縮開始を示す
符号、37は同一部分の繰り返し回数、38は同一部分
の並びの中の一部分、39は圧縮された実数データであ
る。
FIG. 2 is a schematic diagram of data compressed by the real number data compression method in one embodiment of the present invention. In FIG. 2, 31 is real number data, 32 is an exponent part of the divided data, 32a is a first exponent part, 32b is a second exponent part,
33 is the compressed exponent part, 34 is the mantissa part of the divided data, 35 is the compressed mantissa part, 36 is a code indicating the start of compression, 37 is the number of repetitions of the same part, and 38 is the number of the same parts in the sequence A part of 39 is compressed real number data.

次に上記実施例の動作について説明する。Next, the operation of the above embodiment will be explained.

1)まずデータ読み取り手段13によって第1の実数デ
ータ31をルコード単位で読み取り、データ分割手段1
4によって、各レコードを指数部32と仮数部33とに
分割する。
1) First, the data reading means 13 reads the first real number data 31 in code units, and the data dividing means 1
4, each record is divided into an exponent part 32 and a mantissa part 33.

2)次に分割されたレコードの比較手段15によって、
指数部32bとその直前のレコードの指数部32aとを
比較する。
2) Next, by the divided record comparing means 15,
The exponent part 32b is compared with the exponent part 32a of the immediately preceding record.

3)第2の指数部32bが第1の指数部32aと同一で
ある場合は同一部分の並びが検出されたとみなし、分割
されたレコードの計数手段16によって、同一部分の繰
り返し回数37を計数する。
3) If the second exponent part 32b is the same as the first exponent part 32a, it is assumed that a sequence of the same part has been detected, and the divided record counting means 16 counts the number of repetitions 37 of the same part. .

4)第2の指数部32bが第1の指数部32aと異なっ
ている場合は同一部分の並びの終わりが検出されたとみ
なし、データ書き込み手段17によって、圧縮されたデ
ータ39を書き込み、同一部分の繰り返し回数37を初
期値に戻す。この際、同一部分の繰り返し回数37が予
め定められた数より小さければ、圧縮されたデータ39
として同一部分の繰り返し回数37と同じ回数分の第1
の指数部32aを書き込む。同一部分の繰り返し回数3
7が予め定められた数を超えていれば、第2のデータ3
9として圧縮開始を示す符号36と同一部分の繰り返し
回数37と第1の指数部32aとを書き込む。
4) If the second exponent part 32b is different from the first exponent part 32a, it is assumed that the end of the sequence of the same part has been detected, and the data writing means 17 writes the compressed data 39, Return the number of repetitions 37 to the initial value. At this time, if the number of repetitions 37 of the same part is smaller than a predetermined number, the compressed data 39
The first part is repeated for the same number of times as 37 for the same part.
The exponent part 32a of is written. Number of repetitions of the same part 3
If 7 exceeds the predetermined number, the second data 3
9, a code 36 indicating the start of compression, the number of repetitions 37 of the same portion, and the first exponent part 32a are written.

5)次に仮数部について、上記2)から4)の操作を行
なう。
5) Next, perform operations 2) to 4) above for the mantissa part.

1)から5)の繰り返しによって、実数データが圧縮さ
れる。
By repeating steps 1) to 5), real number data is compressed.

以上のように本実施例によれば、実数データをまず指数
部と仮数部に分割することにより、冗長度の大きい指数
部を分割し、この部分を大幅に圧縮することができる。
As described above, according to this embodiment, by first dividing real number data into an exponent part and a mantissa part, the exponent part with a high degree of redundancy can be divided and this part can be significantly compressed.

なお、上記実施例では実数データは指数部と仮数部とに
分割したが、実数データの代わりに文字データとして文
字コードの前半と後半とに分割してもよい。
In the above embodiment, the real number data is divided into an exponent part and a mantissa part, but instead of the real number data, it may be divided into the first half and the second half of a character code as character data.

(発明の効果) 本発明はデータの分割手段を設けろことにより、−見冗
長度の小さく見えるデータの冗長度を増し、データを大
幅に圧縮することができる優れた効果を有する。
(Effects of the Invention) The present invention has the excellent effect of increasing the redundancy of data that appears to have low redundancy and significantly compressing the data by providing a data division means.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例におけるデータ圧縮装置のブ
ロックフローチャート、第2図は本発明の一実施例にお
ける実数データ圧縮方法によって圧縮されたデータの模
式図、第3図は従来のデータ圧縮装置のブロックフロー
チャート、第1ff!!従来のデータ圧縮方法によって
圧縮されたデータの模式図である。 11、51・・・第1のデータ、12.52・・・デー
タ圧縮装[、13,53・・・データ読み取り手段、 
14・・・ レコード分割手段、15・・・分割レコー
ドの比較手段、16・・・分割されたレコードの計数手
段、17.56・・・データ書き込み手段、18.57
・・・第2のデータ、31・・・実数データ、32・・
・実数データの指数部、32a・・・第1の指数部、3
2b・・・第2の指数部、33・・・圧縮された指数部
、34・・・実数データの仮数部、35・・・圧縮され
た仮数部、36・・・圧縮開始を示す符号、37・・・
同一部分の繰り返し回数、38・・・同一部分の並びの
中)一部分、39・・・圧縮された実数データ、41a
・・・第1のレコード、41b・・・第2のレコード、
42・・・同一レコードの並び、44・・・同一レコー
ドの繰り返し回数、45・・・同一レコードの並びの中
のルコード、54・・・ レコード比較手段。 55・・・レコード計数手段。
FIG. 1 is a block flowchart of a data compression device according to an embodiment of the present invention, FIG. 2 is a schematic diagram of data compressed by a real data compression method according to an embodiment of the present invention, and FIG. 3 is a conventional data compression method. Block flowchart of the device, 1st ff! ! FIG. 2 is a schematic diagram of data compressed by a conventional data compression method. 11, 51... First data, 12.52... Data compression device [, 13, 53... Data reading means,
14... Record dividing means, 15... Divided record comparing means, 16... Divided record counting means, 17.56... Data writing means, 18.57
...Second data, 31...Real number data, 32...
・Exponent part of real number data, 32a...first exponent part, 3
2b... Second exponent part, 33... Compressed exponent part, 34... Mantissa part of real number data, 35... Compressed mantissa part, 36... Code indicating start of compression. 37...
Number of repetitions of the same part, 38...Part of the sequence of the same part, 39...Compressed real number data, 41a
...first record, 41b...second record,
42...Sequence of the same records, 44...Number of repetitions of the same records, 45...Rucode in the sequence of the same records, 54...Record comparison means. 55...Record counting means.

Claims (2)

【特許請求の範囲】[Claims] (1)第1のデータを入力し、前記第1のデータをデー
タ圧縮装置内に読み取り、前記第1のデータの各レコー
ドを予め定められた規則によって分割し、前記分割によ
って生じた各部分を比較し、前記比較から、レコードの
各部分の計数を計算し、前記計数を基に第2のデータを
書き込むことを特徴するデータ圧縮方法。
(1) First data is input, the first data is read into a data compression device, each record of the first data is divided according to a predetermined rule, and each part resulting from the division is A data compression method, comprising: comparing the numbers, calculating a count for each part of the record from the comparison, and writing second data based on the count.
(2)第1のデータを入力する手段と、前記第1のデー
タを読み取る手段と、前記第1のデータの各レコードを
分割する手段と、前記第1のデータのレコードの部分を
比較する手段と、前記比較からレコードの部分の計数を
計算する手段と、前記計数を基に第2のデータを書き込
む手段とを備えたことを特徴とするデータ圧縮装置。
(2) means for inputting first data; means for reading said first data; means for dividing each record of said first data; and means for comparing portions of records of said first data. A data compression device comprising: a means for calculating a count of a record portion from the comparison; and a means for writing second data based on the count.
JP2027106A 1990-02-08 1990-02-08 Method and device for data compression Pending JPH03232016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2027106A JPH03232016A (en) 1990-02-08 1990-02-08 Method and device for data compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2027106A JPH03232016A (en) 1990-02-08 1990-02-08 Method and device for data compression

Publications (1)

Publication Number Publication Date
JPH03232016A true JPH03232016A (en) 1991-10-16

Family

ID=12211835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2027106A Pending JPH03232016A (en) 1990-02-08 1990-02-08 Method and device for data compression

Country Status (1)

Country Link
JP (1) JPH03232016A (en)

Similar Documents

Publication Publication Date Title
US4872009A (en) Method and apparatus for data compression and restoration
US20050076063A1 (en) File system for enabling the restoration of a deffective file
JPH0828053B2 (en) Data recording method
KR970703562A (en) Packing Variable Length Record in Fixed Blocks
JPH02228879A (en) Method of compacting data
JPH0654586B2 (en) Track byte guarantee method
JPH04241681A (en) Storage device of compression switching system
JPH03232016A (en) Method and device for data compression
JPH04359315A (en) Data compression controller and data restoration controller
CN118174735A (en) Method for realizing lossless compression of time sequence floating point type data
JPS63232626A (en) Data compression restoration system
GB1364598A (en) Data record merging apparatus
CN100388381C (en) Data recording method and device for optical storage medium
JPS6020366A (en) Error correcting method
JPH06324924A (en) Data compressing device
JP2852253B2 (en) Data retrieval device
JPH05108304A (en) Data compression system
JPS6228906B2 (en)
JPH0460204B2 (en)
JPH0814935B2 (en) Magnetic tape unit
JPH04175036A (en) Data compression system
JPH03266524A (en) Data recorder
JPS61177682A (en) Data recording method
JPH0397026A (en) Data sorter
JPS61224178A (en) Data compressing and recording system