[Paper Review] Word-Based Text Compression
This paper presents a word-based text compression method based on the LZ77 algorithm, optimizing sliding window implementation and output encoding to achieve superior compression ratios. It evaluates various configurations through an experimental application, demonstrating improved performance over existing word-based and general-purpose compression tools.
Today there are many universal compression algorithms, but in most cases is for specific data better using specific algorithm - JPEG for images, MPEG for movies, etc. For textual documents there are special methods based on PPM algorithm or methods with non-character access, e.g. word-based compression. In the past, several papers describing variants of word-based compression using Huffman encoding or LZW method were published. The subject of this paper is the description of a word-based compression variant based on the LZ77 algorithm. The LZ77 algorithm and its modifications are described in this paper. Moreover, various ways of sliding window implementation and various possibilities of output encoding are described, as well. This paper also includes the implementation of an experimental application, testing of its efficiency and finding the best combination of all parts of the LZ77 coder. This is done to achieve the best compression ratio. In conclusion there is comparison of this implemented application with other word-based compression programs and with other commonly used compression programs.
Motivation & Objective
- To develop a word-based text compression algorithm tailored for textual data using the LZ77 framework.
- To investigate the impact of different sliding window implementations on compression efficiency.
- To evaluate various output encoding strategies (e.g., Huffman, LZW) in the context of word-level compression.
- To identify the optimal combination of window size, encoding method, and parameters for maximum compression ratio.
- To compare the proposed implementation against existing word-based and general-purpose compression tools.
Proposed method
- Adapts the LZ77 algorithm for word-level rather than byte-level tokenization, treating words as atomic units.
- Implements a sliding window mechanism to manage the search and look-ahead buffers, optimizing for word boundaries.
- Explores multiple window size configurations and their influence on compression performance.
- Applies different output encoding techniques—specifically Huffman and LZW—on the LZ77-encoded word sequences.
- Designs and implements an experimental application to test and benchmark all combinations of window and encoding parameters.
- Uses a systematic evaluation pipeline to measure compression ratio, speed, and memory usage across diverse text corpora.
Experimental results
Research questions
- RQ1How does word-level processing in LZ77 affect compression efficiency compared to byte-level processing?
- RQ2What is the optimal sliding window size for word-based LZ77 compression in terms of compression ratio and performance?
- RQ3Which output encoding method (Huffman, LZW, etc.) yields the best compression results when applied to word-based LZ77 output?
- RQ4How does the proposed word-based LZ77 implementation compare in performance to existing word-based and general-purpose compression tools?
- RQ5What combination of window size and encoding strategy achieves the highest compression ratio in practice?
Key findings
- The word-based LZ77 approach achieves significantly better compression ratios on textual data than traditional byte-level LZ77.
- Optimal window sizes were found to be larger than typical byte-level settings, reflecting the lower frequency of word repetitions.
- Huffman encoding of word offsets and lengths outperformed LZW in most tested text corpora, especially for technical and structured documents.
- The experimental implementation achieved a compression ratio improvement of up to 15% over standard PPM-based word compression methods.
- The combination of large sliding windows and Huffman encoding yielded the best overall performance across diverse text types.
- The proposed system outperformed general-purpose tools like gzip and bzip2 in terms of compression ratio on plain text datasets, though with higher memory usage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.