arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.08315cs.DB
收藏

区间数据上的独立范围采样(长版本)

Independent Range Sampling on Interval Data (Longer Version)

Daichi Amagata

AI总结:

针对区间范围查询结果过大的问题,提出增强区间树 AIT 及其分桶与加权扩展,实现独立随机采样,并在真实数据上验证其显著优于现有方法。

摘要:

许多应用需要高效管理大量区间,因为许多对象都与区间相关联(例如时间区间和价格区间)。在此类区间管理系统中,范围搜索是用于检索和分析任务的基础算子。随着如今数据集规模不断增长,范围搜索结果也变得越来越大,这可能使用户不堪重负,并导致很长的计算时间。由于应用通常只需结果集的一个子集即可满足需求,因此人们希望能够仅从结果集中高效获取少量样本。为此,我们研究区间数据上的独立范围采样问题:该问题输出与给定查询区间相交的 s 个随机样本,并且这些样本独立于此前所有查询的样本。为了在理论和实践上高效解决这一问题,我们提出区间树的一种变体,即增强区间树(augmented interval tree,AIT),并证明存在一种精确算法,其空间复杂度为 O(n log n),时间复杂度为 O(log² n + s),其中 n 为数据集规模。AIT 的简单结构提供了灵活的扩展:(i)通过对区间进行分桶,其时间和空间复杂度分别变为期望 O(log² n + s) 和 O(n);(ii)它能够处理带权区间,并以 O(log² n + s log n) 的时间输出 s 个加权随机样本。我们在真实数据集上进行了大量实验,结果表明我们的算法显著优于竞争方法。

英文摘要:

Many applications require efficient management of large sets of intervals because many objects are associated with intervals (e.g., time and price intervals). In such interval management systems, range search is a primitive operator for retrieving and analysis tasks. As dataset sizes are growing nowadays, range search results are also becoming larger, which may overwhelm users and incur long computation time. Because applications are usually satisfied with a subset of the result set, it is desirable to efficiently obtain only small samples from the result set.We therefore address the problem of independent range sampling on interval data, which outputs $s$ random samples that overlap a given query interval and are independent of the samples of all previous queries. To efficiently solve this problem theoretically and practically, we propose a variant of an interval tree, namely the augmented interval tree (or AIT), and we show that there exists an exact algorithm that needs $O(n \log n)$ space and $O(\log^{2} n + s)$ time, where $n$ is the dataset size. The simple structure of an AIT provides flexible extensions: (i) its time and space complexities respectively become $O(\log^{2} n + s)$ expected and $O(n)$ by bucketing intervals and (ii) it can deal with weighted intervals and outputs $s$ weighted random samples in $O(\log^{2} n+s\log n)$ time. We conduct extensive experiments on real datasets, and the results demonstrate that our algorithms significantly outperform competitors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑