English

The Rightmost Equal-Cost Position Problem

Data Structures and Algorithms 2012-11-22 v1 Information Theory math.IT

Abstract

LZ77-based compression schemes compress the input text by replacing factors in the text with an encoded reference to a previous occurrence formed by the couple (length, offset). For a given factor, the smallest is the offset, the smallest is the resulting compression ratio. This is optimally achieved by using the rightmost occurrence of a factor in the previous text. Given a cost function, for instance the minimum number of bits used to represent an integer, we define the Rightmost Equal-Cost Position (REP) problem as the problem of finding one of the occurrences of a factor which cost is equal to the cost of the rightmost one. We present the Multi-Layer Suffix Tree data structure that, for a text of length n, at any time i, it provides REP(LPF) in constant time, where LPF is the longest previous factor, i.e. the greedy phrase, a reference to the list of REP({set of prefixes of LPF}) in constant time and REP(p) in time O(|p| log log n) for any given pattern p.

Keywords

Cite

@article{arxiv.1211.5108,
  title  = {The Rightmost Equal-Cost Position Problem},
  author = {Maxime Crochemore and Alessio Langiu and Filippo Mignosi},
  journal= {arXiv preprint arXiv:1211.5108},
  year   = {2012}
}
R2 v1 2026-06-21T22:42:20.616Z