Binary Jumbled Pattern Matching on Trees and Tree-Like Structures
Abstract
Binary jumbled pattern matching asks to preprocess a binary string in order to answer queries which ask for a substring of that is of length and has exactly 1-bits. This problem naturally generalizes to vertex-labeled trees and graphs by replacing "substring" with "connected subgraph". In this paper, we give an -time solution for trees, matching the currently best bound for (the simpler problem of) strings. We also give an -time solution for strings that are compressed by a grammar of size . This solution improves the known bounds when the string is compressible under many popular compression schemes. Finally, we prove that the problem is fixed-parameter tractable with respect to the treewidth of the graph, thus improving the previous best algorithm [ICALP'07].
Cite
@article{arxiv.1301.6127,
title = {Binary Jumbled Pattern Matching on Trees and Tree-Like Structures},
author = {Travis Gagie and Danny Hermelin and Gad M. Landau and Oren Weimann},
journal= {arXiv preprint arXiv:1301.6127},
year = {2014}
}