Binary jumbled string matching for highly run-length compressible texts

From MaRDI portal
Publication:2444848



Abstract: The Binary Jumbled String Matching problem is defined as: Given a string s over a,b of length n and a query (x,y), with x,y non-negative integers, decide whether s has a substring t with exactly x a's and y b's. Previous solutions created an index of size O(n) in a pre-processing step, which was then used to answer queries in constant time. The fastest algorithms for construction of this index have running time O(n2/logn) [Burcsi et al., FUN 2010; Moosa and Rahman, IPL 2010], or O(n2/log2n) in the word-RAM model [Moosa and Rahman, JDA 2012]. We propose an index constructed directly from the run-length encoding of s. The construction time of our index is O(n+ho2logho), where O(n) is the time for computing the run-length encoding of s and ho is the length of this encoding---this is no worse than previous solutions if ho=O(n/logn) and better if ho=o(n/logn). Our index L can be queried in O(logho) time. While |L|=O(min(n,ho2)) in the worst case, preliminary investigations have indicated that |L| may often be close to ho. Furthermore, the algorithm for constructing the index is conceptually simple and easy to implement. In an attempt to shed light on the structure and size of our index, we characterize it in terms of the prefix normal forms of s introduced in [Fici and Lipt'ak, DLT 2011].












This page was built for publication: Binary jumbled string matching for highly run-length compressible texts

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q2444848)