摘要 |
The present invention relates to a method for compressing binary data, which is performed by a device for compressing binary data. The method for compressing binary data comprises the steps of: scanning original binary data; acquiring a plurality of general clusters by dividing the scanned original binary data into the general clusters; generating a mapping dictionary which defines the corresponding relationship between each value of the general clusters and a universal code; and generating compressed data including the universal codes from the original binary data by referring to the mapping dictionary, wherein the general cluster represents a binary number including ″10″ encountered while moving in a direction from the least significant bit to the high-order bits of the original binary data and a binary number between the ″10″ and ″10″ encountered just before the ″10″, and the universal code includes ″10″ of a most significant bit, zero or more consecutive ″1″s, and at least zero ″0″ disposed between the ″10″ of the most significant bit and the consecutive ″1″s. |