arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0903.4251cs.DS
收藏

利用后缀数组实现Lempel-Ziv数据压缩

On the Use of Suffix Arrays for Memory-Efficient Lempel-Ziv Data Compression

Artur Ferreira, Arlindo Oliveira, Mario Figueiredo

摘要:

许多研究致力于优化Lempel-Ziv(LZ)77系列的算法,无论是在速度和内存需求方面。二叉搜索树和后缀树(ST)是经常用于此目的的数据结构,因为它们允许以内存使用为代价进行快速搜索。近年来,由于后缀数组(SA)的简单性和低存储器要求,人们对它们产生了兴趣。一个关键的问题是,SA可以解决子串问题几乎一样有效的ST,使用更少的内存。本文提出了两种新的SA为基础的LZ编码算法,这需要在解码器端的修改。标准基准测试的实验结果表明,我们的算法,虽然不是更快,使用的内存比ST同行少3至5倍。我们基于SA的算法的另一个重要特征是,内存量与要搜索的文本无关,因此可以先验地定义要分配的内存。这些低且可预测的内存需求特性在几种情况下至关重要,例如嵌入式系统,其中内存非常宝贵,速度并不重要。最后,我们指出,新的算法是一般的,在这个意义上说,他们是足够的应用程序以外的LZ压缩,如文本检索和向前/向后子串搜索。

英文摘要:

Much research has been devoted to optimizing algorithms of the Lempel-Ziv (LZ) 77 family, both in terms of speed and memory requirements. Binary search trees and suffix trees (ST) are data structures that have been often used for this purpose, as they allow fast searches at the expense of memory usage. In recent years, there has been interest on suffix arrays (SA), due to their simplicity and low memory requirements. One key issue is that an SA can solve the sub-string problem almost as efficiently as an ST, using less memory. This paper proposes two new SA-based algorithms for LZ encoding, which require no modifications on the decoder side. Experimental results on standard benchmarks show that our algorithms, though not faster, use 3 to 5 times less memory than the ST counterparts. Another important feature of our SA-based algorithms is that the amount of memory is independent of the text to search, thus the memory that has to be allocated can be defined a priori. These features of low and predictable memory requirements are of the utmost importance in several scenarios, such as embedded systems, where memory is at a premium and speed is not critical. Finally, we point out that the new algorithms are general, in the sense that they are adequate for applications other than LZ compression, such as text retrieval and forward/backward sub-string search.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑