pith. sign in

arxiv: 1210.8386 · v3 · pith:RA5E3NHYnew · submitted 2012-10-31 · 💻 cs.DS

Grammar-Based Construction of Indexes for Binary Jumbled Pattern Matching

classification 💻 cs.DS
keywords timebinarygivenindexlengthsubstringbuildconstruction
0
0 comments X
read the original abstract

We show how, given a straight-line program with $g$ rules for a binary string $B$ of length $n$, in $O(g^{2 / 3} n^{4 / 3})$ time we can build a linear-space index such that, given $m$ and $c$, in O(1) time we can determine whether there is a substring of $B$ with length $m$ containing exactly $c$ copies of 1. If we use $O(n \log n)$ space for the index, then we can list all such substrings using $O(m)$ time per substring.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.