paper

Binary Jumbled Pattern Matching via All-Pairs Shortest Paths

arXiv:1401.2065

Abstract

In binary jumbled pattern matching we wish to preprocess a binary string in order to answer queries which ask for a substring of that is of size and has exactly 1-bits. The problem naturally generalizes to node-labeled trees and graphs by replacing "substring" with "connected subgraph". In this paper, we give an time solution for both strings and trees. This odd-looking time complexity improves the state of the art solutions by more than any poly-logarithmic factor. It originates from the recent seminal algorithm of Williams for min-plus matrix multiplication. We obtain the result by giving a black box reduction from trees to strings. This is then combined with a reduction from strings to min-plus matrix multiplications.

References in corpus (2)

Cited by in corpus (4)