Compression of low entropy strings with Lempel-Ziv algorithms

被引:62
作者
Kosaraju, SR [1 ]
Manzini, G
机构
[1] Johns Hopkins Univ, Dept Comp Sci, Baltimore, MD 21218 USA
[2] Univ Piemonte Orientale, Dip Sci & Tecnol Avanzate, I-15100 Alessandria, Italy
[3] CNR, Ist Matemat Computaz, I-56100 Pisa, Italy
关键词
data compression; Lempel-Ziv parsing; empirical entropy;
D O I
10.1137/S0097539797331105
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We compare the compression ratio of the Lempel-Ziv algorithms with the empirical entropy of the input string. This approach makes it possible to analyze the performance of these algorithms without any assumption on the input and to obtain worst case results. We show that in this setting the standard definition of optimal compression algorithm is not satisfactory. In fact, although Lempel-Ziv algorithms are optimal according to the standard definition, there exist families of low entropy strings which are not compressed optimally. More precisely, the compression ratio achieved by LZ78 (resp., LZ77) can be much higher than the zeroth order entropy H-0 (resp., the first order entropy H-1). For this reason we introduce the concept of lambda-optimal algorithm. An algorithm is lambda-optimal with respect to H-k if, loosely speaking, its compression ratio is asymptotically bounded by lambda times the kth order empirical entropy H-k. We prove that LZ78 cannot be lambda-optimal with respect to any H-k with k greater than or equal to 0. Then, we describe a new algorithm which combines LZ78 with run length encoding (RLE) and is 3-optimal with respect to H-0. Finally, we prove that LZ77 is 8-optimal with respect to H-0, and that it cannot be lambda-optimal with respect to H-k for any k greater than or equal to 1.
引用
收藏
页码:893 / 911
页数:19
相关论文
共 24 条
[21]   The redundancy and distribution of the phrase lengths of the fixed-database Lempel-Ziv algorithm [J].
Wyner, AJ .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1997, 43 (05) :1452-1464
[22]   On the performance of data compression algorithms based upon string matching [J].
Yang, EH ;
Kieffer, JC .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1998, 44 (01) :47-65
[23]   UNIVERSAL ALGORITHM FOR SEQUENTIAL DATA COMPRESSION [J].
ZIV, J ;
LEMPEL, A .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1977, 23 (03) :337-343
[24]   COMPRESSION OF INDIVIDUAL SEQUENCES VIA VARIABLE-RATE CODING [J].
ZIV, J ;
LEMPEL, A .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1978, 24 (05) :530-536