As described in the foregoing statement, this invention data compression method is capable of realizing compression at a high speed and at a high efficiency as the method can be implemented by encoding simply with such hardware as address or data conversion and comparators.