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 条
[1]  
BELL T, 1989, COMPUT SURV, V21, P557, DOI 10.1145/76894.76896
[2]   NEW ASYMPTOTIC BOUNDS AND IMPROVEMENTS ON THE LEMPEL-ZIV DATA-COMPRESSION ALGORITHM [J].
BENDER, PE ;
WOLF, JK .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1991, 37 (03) :721-729
[3]   A LOCALLY ADAPTIVE DATA-COMPRESSION SCHEME [J].
BENTLEY, JL ;
SLEATOR, DD ;
TARJAN, RE ;
WEI, VK .
COMMUNICATIONS OF THE ACM, 1986, 29 (04) :320-330
[4]  
BLOOM C, 1996, P IEEE DAT COMPR C S
[5]  
Cover T. M., 2005, ELEM INF THEORY, DOI 10.1002/047174882X
[6]  
HANSEL G, 1992, LECT NOTES COMPUT SC, V577, P515
[7]   ASYMPTOTIC-BEHAVIOR OF THE LEMPEL-ZIV PARSING SCHEME AND DIGITAL SEARCH-TREES [J].
JACQUET, P ;
SZPANKOWSKI, W .
THEORETICAL COMPUTER SCIENCE, 1995, 144 (1-2) :161-197
[9]   On the average redundancy rate of the Lempel-Ziv code [J].
Louchard, G ;
Szpankowski, W .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1997, 43 (01) :2-8
[10]   ON ASYMPTOTIC OPTIMALITY OF A SLIDING WINDOW VARIATION OF LEMPEL-ZIV CODES [J].
MORITA, H ;
KOBAYASHI, K .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1993, 39 (06) :1840-1846