Grammar-Based Construction of Indexes for Binary Jumbled Pattern Matching

Abstract

We show how, given a straight-line program with g rules for a binary string B of length n, in O(g2 / 3 n4 / 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 n) space for the index, then we can list all such substrings using O(m) time per substring.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…