New algorithms for binary jumbled pattern matching
Abstract
Given a pattern and a text , both strings over a binary alphabet, the binary jumbled string matching problem consists in telling whether any permutation of occurs in . The indexed version of this problem, i.e., preprocessing a string to efficiently answer such permutation queries, is hard and has been studied in the last few years. Currently the best bounds for this problem are (with O(n) space and O(1) query time) and (with O(|L|) space and query time), where is the length of the run-length encoding of and is the size of the index. In this paper we present new results for this problem. Our first result is an alternative construction of the index by Badkobeh et al. that obtains a trade-off between the space and the time complexity. It has complexity to build the index, query time, and uses space, where is a parameter. The second result is an algorithm (with O(n) space and O(1) query time), based on word-level parallelism where is the word size in bits.
Cite
@article{arxiv.1210.6176,
title = {New algorithms for binary jumbled pattern matching},
author = {Emanuele Giaquinta and Szymon Grabowski},
journal= {arXiv preprint arXiv:1210.6176},
year = {2013}
}