Re-Pair In Small Space

Dominik Köppl, Tomohiro I, Isamu Furuya, Yoshimasa Takabatake, Kensuke Sakai +1 more
8/14/2019
cs.DS

Official code: koeppl/repair-inplace (2 stars, C++, last commit 2023-02-03).

Abstract

Re-Pair is a grammar compression scheme with favorably good compression rates. The computation of Re-Pair comes with the cost of maintaining large frequency tables, which makes it hard to compute Re-Pair on large scale data sets.

Show full abstract

As a solution for this problem we present, given a text of length $n$ whose characters are drawn from an integer alphabet, an $O(n^2) \cap O(n^2 \lg \log_τn \lg \lg \lg n / \log_τn)$ time algorithm computing Re-Pair in $n \lg \max(n,τ)$ bits of space including the text space, where $τ$ is the number of terminals and non-terminals. The algorithm works in the restore model, supporting the recovery of the original input in the time for the Re-Pair computation with $O(\lg n)$ additional bits of working space. We give variants of our solution working in parallel or in the external memory model.

View on arXivView PDF

Code Implementations(1)

Computing Re-Pair in Text Space

20C++, CMakeAug 30, 20193 years ago
grammar-compressionrepair

Similar Papers

Cite this paper

@article{kppl2019repair,
  title  = {Re-Pair In Small Space},
  author = {Dominik Köppl and Tomohiro I and Isamu Furuya and Yoshimasa Takabatake and Kensuke Sakai and Keisuke Goto},
  year   = {2019},
  eprint = {1908.04933},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.04933}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1908.04933.svg)](https://codeofpaper.com/paper/1908.04933)

Discussion