English

Efficient Algorithms for Top-k Stabbing Queries on Weighted Interval Data (Full Version)

Databases 2024-05-24 v2

Abstract

Intervals have been generated in many applications (e.g., temporal databases), and they are often associated with weights, such as prices. This paper addresses the problem of processing top-k weighted stabbing queries on interval data. Given a set of weighted intervals, a query value, and a result size kk, this problem finds the kk intervals that are stabbed by the query value and have the largest weights. Although this problem finds practical applications (e.g., purchase, vehicle, and cryptocurrency analysis), it has not been well studied. A state-of-the-art algorithm for this problem incurs O(nlogk)O(n\log k) time, where nn is the number of intervals, so it is not scalable to large nn. We solve this inefficiency issue and propose an algorithm that runs in O(nlogn+k)O(\sqrt{n }\log n + k) time. Furthermore, we propose an O(logn+k)O(\log n + k) algorithm to further accelerate the search efficiency. Experiments on two real large datasets demonstrate that our algorithms are faster than existing algorithms.

Keywords

Cite

@article{arxiv.2405.05601,
  title  = {Efficient Algorithms for Top-k Stabbing Queries on Weighted Interval Data (Full Version)},
  author = {Daichi Amagata and Junya Yamada and Yuchen Ji and Takahiro Hara},
  journal= {arXiv preprint arXiv:2405.05601},
  year   = {2024}
}

Comments

Full version of our DEXA2024 paper

R2 v1 2026-06-28T16:21:47.238Z