Related Experiment Video
Updated: Sep 12, 2025

Experimental Paradigm for Measuring the Effect of Induced Emotion on Grammar Learning
Published on: January 29, 2020
Efficient Grammar Compression via RLZ-based RePair
Rahul Varki1, Travis Gagie2, Christina Boucher1
1Department of Computer and Information Science and Engineering, University of Florida, Gainesville, FL, 32607.
Abstract:
Among grammar-based compression techniques, RePair is a notable offline encoding scheme known for its simplicity and powerful combinatorial properties, producing compact grammars by repeatedly replacing the most frequent adjacent pairs of symbols, known as bigrams. However, RePair's memory usage scales poorly with input size, as it loads the entire text into memory. In contrast, Relative Lempel-Ziv (RLZ) parsing offers a scalable and lightweight online encoding scheme that losslessly represents a text in terms of phrases that refer to a reference string, but it often fails to expose deeper structural patterns. We introduce an algorithm that produces a RePair grammar from the RLZ parse of the input, leveraging the strengths of both methods. Our method, RLZ-RePair, performs bigram replacements systematically, preserving the integrity of the RLZ phrases throughout the RePair iterations. When the reference is well chosen, our method achieves the same grammar as standard RePair while significantly reducing both memory usage and the number of bigram replacements. In particular, we show that RLZ-RePair uses significantly less memory than RePair, which required between 18% and 480% more memory across different data sets. To our knowledge, RLZ-RePair is one of the first scalable methods that constructs exact RePair grammars, resulting in a grammar-based compressor that is both practical for large datasets and faithful to the theoretical elegance of RePair.
More Related Videos
08:32Examining Online Syntactic Processing of Spoken Complex Sentences in Chinese Using Dual-Modal Interference Tasks
Published on: September 5, 2019
07:46CRISPR/Cas9 Editing of the C. elegans rbm-3.2 Gene using the dpy-10 Co-CRISPR Screening Marker and Assembled Ribonucleoprotein Complexes.
Published on: December 11, 2020
Related Concept Videos
Long-patch Base Excision Repair
RL Circuit without Source
Applying Kirchhoff's voltage law around the loop of the circuit and substituting the voltages across the inductor and resistor yields a first-order differential equation. A logarithmic equation is obtained by rearranging the terms in this equation,...
Mismatch Repair
Nucleotide Excision Repair
Cells are regularly exposed to mutagens—factors in the environment that can damage DNA and generate mutations. UV radiation is one of the most common mutagens and is estimated to introduce a significant number of changes in DNA. These include bends or kinks in the structure, which can block DNA replication or transcription. If these errors are not fixed, the damage can cause mutations, which in turn can result in cancer or disease depending on which sequences are...
RL Circuit with Source
The transient response of the circuit is its temporary reaction to the sudden application of the DC source. This response is characterized by a current that exponentially decays to zero as time approaches infinity. During this transitional period, the inductor behaves like a short circuit, causing the source...
Comparison between RL and RC circuits