English

Fast and Simple Jumbled Indexing for Binary RLE Strings

Data Structures and Algorithms 2017-02-15 v2

Abstract

Important papers have appeared recently on the problem of indexing binary strings for jumbled pattern matching, and further lowering the time bounds in terms of the input size would now be a breakthrough with broad implications. We can still make progress on the problem, however, by considering other natural parameters. Badkobeh et al.\ (IPL, 2013) and Amir et al.\ (TCS, 2016) gave algorithms that index a binary string in O(n+ρ2logρ)O (n + \rho^2 \log \rho) time, where nn is the length and ρ\rho is the number of runs, and Giaquinta and Grabowski (IPL, 2013) gave one that runs in O(n+ρ2)O (n + \rho^2) time. In this paper we propose a new and very simple algorithm that also runs in O(n+ρ2)O(n + \rho^2) time and can be extended either so that the index returns the position of a match (if there is one), or so that the algorithm uses only O(n)O (n) bits of space.

Keywords

Cite

@article{arxiv.1702.01280,
  title  = {Fast and Simple Jumbled Indexing for Binary RLE Strings},
  author = {Luís Cunha and Simone Dantas and Travis Gagie and Roland Wittler and Luis Kowada and Jens Stoye},
  journal= {arXiv preprint arXiv:1702.01280},
  year   = {2017}
}
R2 v1 2026-06-22T18:09:20.654Z