# Rpair: Rescaling RePair with Rsync

**Authors:** Travis Gagie, Tomohiro I, Giovanni Manzini, Gonzalo Navarro, Hiroshi, Sakamoto, Yoshimasa Takabatake

arXiv: 1906.00809 · 2019-06-04

## TL;DR

This paper introduces Rpair, a method that preprocesses large datasets with hashing to improve the efficiency of applying grammar-based compression schemes like RePair, supported by theoretical bounds and practical experiments.

## Contribution

It presents a novel preprocessing algorithm using context-triggered hashing to facilitate faster grammar-based compression and provides theoretical and empirical validation.

## Key findings

- Preprocessing with hashing improves compression speed.
- The method approximates LZ77 parsing effectively.
- Experimental results show competitiveness with existing approaches.

## Abstract

Data compression is a powerful tool for managing massive but repetitive datasets, especially schemes such as grammar-based compression that support computation over the data without decompressing it. In the best case such a scheme takes a dataset so big that it must be stored on disk and shrinks it enough that it can be stored and processed in internal memory. Even then, however, the scheme is essentially useless unless it can be built on the original dataset reasonably quickly while keeping the dataset on disk. In this paper we show how we can preprocess such datasets with context-triggered piecewise hashing such that afterwards we can apply RePair and other grammar-based compressors more easily. We first give our algorithm, then show how a variant of it can be used to approximate the LZ77 parse, then leverage that to prove theoretical bounds on compression, and finally give experimental evidence that our approach is competitive in practice.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1906.00809/full.md

## References

31 references — full list in the complete paper: https://tomesphere.com/paper/1906.00809/full.md

---
Source: https://tomesphere.com/paper/1906.00809