Simple Linear-Time Off-Line Text Compression by Longest-First Substitution

Ryosuke Nakamura, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda · 2007

We consider grammar based text compression with longest-first substitution, where non-overlapping occurrences of a longest repeating substring of the input text are replaced by a new non-terminal symbol. We present a new text compression algorithm by simplifying the algorithm presented in S. Inenaga et al., (2003). We give a new formulation of the correctness proof introducing the sparse lazy suffix tree data structure. We also present another type of longest-first substitution strategy that allows better compression. We show results of preliminary experiments comparing grammar sizes of the two versions of the longest-first strategy and the most frequent strategy

Read the paper · More papers on PaperTik