Space-time trade-offs for some ranking and searching queries

  • Authors:
  • Adrian Dumitrescu;William Steiger

  • Affiliations:
  • SUNY, Stony Brook, NY;Rutgers Univ., Piscataway, NJ

  • Venue:
  • Information Processing Letters
  • Year:
  • 2001

Quantified Score

Hi-index 0.89

Visualization

Abstract

We study space/time tradeoffs for querying some combinatorial structures. In the first, given an arrangement of n lines in general position in the plane, a query for a real number t asks about Rank(t), the number of vertices of the arrangement with x-coordinates ≤ t. We show that for K = O(n/logn), after a preprocessing step that uses space S = O(n2/(KlogK)) the query can be answered in time O(nlog K). The second query involves the Cartesian sum vectors a = (a1,...,an) and b = (b1,...,bn). For a given real t, it asks about Rank(t), the number of sums ai + bj which are ≤ t. We show that for some positive constant c and K ≤ c(log n)/(log logn), after a preprocessing step that uses space S = O(n2/K2), the query may be answered in time O((n/K)log K). Both results fit neatly between two obvious extremes.