Title
An Online Algorithm for Lightweight Grammar-Based Compression
Abstract
Grammar-based compression is a well-studied technique for constructing a small context-free grammar (CFG) uniquely deriving a given text. In this paper, we present an online algorithm for lightweight grammar-based compression. Our algorithm is based on the LCA algorithm [Sakamoto et al. 2004]which guarantees nearly optimum compression ratio and space. LCA, however, is an offline algorithm and requires external space to save space consumption. Therefore, we present its online version which inherits most characteristics of the original LCA. Our algorithm guarantees $O(\log^2 n)$-approximation ratio for an optimum grammar size, and all work is carried out on a main memory space which is bounded by the output size. In addition, we propose more practical encoding based on parentheses representation of a binary tree. Experimental results for repetitive texts demonstrate that our algorithm achieves effective compression compared to other practical compressors and the space consumption of our algorithm is smaller than the input text size.
Year
DOI
Venue
2012
10.1109/CCP.2011.40
Algorithms
Keywords
DocType
Volume
offline algorithm,online algorithm,space consumption,lightweight grammar-based compression,external space,grammar-based compression,effective compression,main memory space,algorithm guarantee,lca algorithm,approximation algorithm,lossless compression
Journal
5
Issue
Citations 
PageRank 
2
13
0.62
References 
Authors
27
4
Name
Order
Citations
PageRank
Shirou Maruyama1664.65
Masayuki Takeda290279.24
Masaya Nakahara3231.86
Hiroshi Sakamoto4322.86