Abstract

Let D\mathcal{D} be a collection of DD documents, which are strings over an alphabet of size σσ, of total length nn. We describe a data structure that uses linear space and and reports kk most relevant documents that contain a query pattern PP, which is a string of length pp, in time O(p/log⁡σn+k)O(p/\log_σn+k), which is optimal in the RAM model in the general case where lg⁡D=Θ(log⁡n)\lg D = Θ(\log n), and involves a novel RAM-optimal suffix tree search. Our construction supports an ample set of important relevance measures... [clip] When lg⁡D=o(log⁡n)\lg D = o(\log n), we show how to reduce the space of the data structure from O(nlog⁡n)O(n\log n) to O(n(log⁡σ+log⁡D+log⁡log⁡n))O(n(\logσ+\log D+\log\log n)) bits... [clip] We also consider the dynamic scenario, where documents can be inserted and deleted from the collection. We obtain linear space and query time O(p(log⁡log⁡n)2/log⁡σn+log⁡n+klog⁡log⁡k)O(p(\log\log n)^2/\log_σn+\log n + k\log\log k), whereas insertions and deletions require O(log⁡1+εn)O(\log^{1+ε} n) time per symbol, for any constant ε>0ε>0. Finally, we consider an extended static scenario where an extra parameter par(P,d)par(P,d) is defined, and the query must retrieve only documents dd such that par(P,d)∈[τ1,τ2]par(P,d)\in [τ_1,τ_2], where this range is specified at query time. We solve these queries using linear space and O(p/log⁡σn+log⁡1+εn+klog⁡εn)O(p/\log_σn + \log^{1+ε} n + k\log^εn) time, for any constant ε>0ε>0. Our technique is to translate these top-kk problems into multidimensional geometric search problems. As an additional bonus, we describe some improvements to those problems.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.