Saved in:
Bibliographic Details
Main Authors: Amagata, Daichi, Yamada, Junya, Ji, Yuchen, Hara, Takahiro
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.05601
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909208872484864
author Amagata, Daichi
Yamada, Junya
Ji, Yuchen
Hara, Takahiro
author_facet Amagata, Daichi
Yamada, Junya
Ji, Yuchen
Hara, Takahiro
contents 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 $k$, this problem finds the $k$ 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(n\log k)$ time, where $n$ is the number of intervals, so it is not scalable to large $n$. We solve this inefficiency issue and propose an algorithm that runs in $O(\sqrt{n }\log n + k)$ time. Furthermore, we propose an $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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_05601
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Algorithms for Top-k Stabbing Queries on Weighted Interval Data (Full Version)
Amagata, Daichi
Yamada, Junya
Ji, Yuchen
Hara, Takahiro
Databases
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 $k$, this problem finds the $k$ 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(n\log k)$ time, where $n$ is the number of intervals, so it is not scalable to large $n$. We solve this inefficiency issue and propose an algorithm that runs in $O(\sqrt{n }\log n + k)$ time. Furthermore, we propose an $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.
title Efficient Algorithms for Top-k Stabbing Queries on Weighted Interval Data (Full Version)
topic Databases
url https://arxiv.org/abs/2405.05601