Speeding Up String Pattern Matching by Text Compression: The Dawn of a New Era
Masayuki Takeda, Yusuke Shibata, Tetsuya Matsumoto et al. · Transactions of Information Processing Society of Japan · 2001
††,☆ † † † †† †† † This paper describes our recent studies on string pattern matching in compressed texts mainly from practical viewpoints. The aim is to speed up the string pattern matching task, in comparison with an ordinary search over the original texts. We have successfully developed (1) an AC type algorithm for searching in Huffman encoded files, and (2) a KMP type algorithm and (3) a BM type algorithm for searching in files compressed by the so-called byte pair encoding (BPE). Each of the algorithms reduces the search time at nearly the same rate as the compression ratio. Surprisingly, the BM type algorithm runs over BPE compressed files about 1.2–3.0 times faster than the exact match routines of the software package agrep, which is known as the fastest pattern matching tool.
Cited by 23 works.
Authors
- Masayuki Takeda
- Yusuke Shibata
- Tetsuya Matsumoto
- Takuya Kida
- Ayumi Shinohara
- Shuichi Fukamachi
- Takeshi Shinohara
- Setsuo Arikawa
References
- A universal algorithm for sequential data compression
- Fast Pattern Matching in Strings
- Efficient string matching
- A fast string searching algorithm
- A Technique for High-Performance Data Compression
- A new algorithm for data compression
- Let Sleeping Files Lie: Pattern Matching in Z-Compressed Files
- A text compression scheme that allows fast searching directly in the compressed file
- String Matching in Lempel—Ziv Compressed Strings
- Minimisation of acyclic deterministic automata in linear time