LONGEST-MATCH STRING SEARCHING FOR ZIV-LEMPEL COMPRESSION

被引:13
作者
BELL, T
KULP, D
机构
[1] Department of Computer Science, University of Canterbury, Christchurch
关键词
DATA COMPRESSION; SEARCHING;
D O I
10.1002/spe.4380230705
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Ziv-Lempel coding is currently one of the more practical data compression schemes. It operates by replacing a substring of a text with a pointer to its longest previous occurrence in the input, for each coding step. Decoding a compressed file is very fast, but encoding involves searching at each coding step to find the longest match for the next few characters. This paper presents eight data structures that can be used to accelerate the searching, including adaptations of four methods normally used for exact matching searching. The algorithms are evaluated analytically and empirically, indicating the trade-offs available between compression speed and memory consumption. Two of the algorithms are well-known methods of finding the longest match-time-consuming linear search, and the storage-intensive trie (digital search tree). The trie is adapted along the lines of a PATRICIA tree to operate economically. Hashing, binary search trees, splay trees and the Boyer-Moore searching algorithm are traditionally used to search for exact matches, but we show how these can be adapted to find longest matches. In addition, two data structures specifically designed for the application are presented.
引用
收藏
页码:757 / 771
页数:15
相关论文
共 18 条
[1]  
Bell T.C., 1990, TEXT COMPRESSION
[2]   BETTER OPM/L TEXT COMPRESSION [J].
BELL, TC .
IEEE TRANSACTIONS ON COMMUNICATIONS, 1986, 34 (12) :1176-1182
[3]  
BELL TC, 1987, THESIS U CANTERBURY
[4]   FAST STRING SEARCHING ALGORITHM [J].
BOYER, RS ;
MOORE, JS .
COMMUNICATIONS OF THE ACM, 1977, 20 (10) :762-772
[5]  
BRENT RP, 1987, AUST COMPUT J, V19, P64
[6]  
CLEARY JG, 1984, IEEE T COMMUN, V32, P395
[7]   DATA-COMPRESSION USING DYNAMIC MARKOV MODELING [J].
CORMACK, GV ;
HORSPOOL, RNS .
COMPUTER JOURNAL, 1987, 30 (06) :541-550
[8]   DATA-COMPRESSION WITH FINITE WINDOWS [J].
FIALA, ER ;
GREENE, DH .
COMMUNICATIONS OF THE ACM, 1989, 32 (04) :490-505
[9]  
Knuth D. E., 1977, SIAM Journal on Computing, V6, P323, DOI 10.1137/0206024
[10]  
KULP DC, 1992, VERY FAST PATTERN MA