English

On Hardness of Jumbled Indexing

Data Structures and Algorithms 2014-05-02 v1

Abstract

Jumbled indexing is the problem of indexing a text TT for queries that ask whether there is a substring of TT matching a pattern represented as a Parikh vector, i.e., the vector of frequency counts for each character. Jumbled indexing has garnered a lot of interest in the last four years. There is a naive algorithm that preprocesses all answers in O(n2Σ)O(n^2|\Sigma|) time allowing quick queries afterwards, and there is another naive algorithm that requires no preprocessing but has O(nlogΣ)O(n\log|\Sigma|) query time. Despite a tremendous amount of effort there has been little improvement over these running times. In this paper we provide good reason for this. We show that, under a 3SUM-hardness assumption, jumbled indexing for alphabets of size ω(1)\omega(1) requires Ω(n2ϵ)\Omega(n^{2-\epsilon}) preprocessing time or Ω(n1δ)\Omega(n^{1-\delta}) query time for any ϵ,δ>0\epsilon,\delta>0. In fact, under a stronger 3SUM-hardness assumption, for any constant alphabet size r3r\ge 3 there exist describable fixed constant ϵr\epsilon_r and δr\delta_r such that jumbled indexing requires Ω(n2ϵr)\Omega(n^{2-\epsilon_r}) preprocessing time or Ω(n1δr)\Omega(n^{1-\delta_r}) query time.

Keywords

Cite

@article{arxiv.1405.0189,
  title  = {On Hardness of Jumbled Indexing},
  author = {Amihood Amir and Timothy Chan and Moshe Lewenstein and Noa Lewenstein},
  journal= {arXiv preprint arXiv:1405.0189},
  year   = {2014}
}