arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.07024cs.CGcs.DS
收藏

使用梯形搜索DAG的线段最优窗口查询

Optimal Window Queries on Line Segments using the Trapezoidal Search DAG

Milutin Brankovic, Martin P. Seybold

AI总结:

本文提出用梯形搜索DAG支持垂直线段查询,通过深度优先搜索在最优的O(k+log n)期望时间内报告相交梯形,并改进连通平面图输入的构建时间,同时扩展支持轴对齐窗口查询。

摘要:

我们针对平面上由 $n$ 条线段组成的集合所对应的著名梯形搜索DAG(TSD)提出一种新的查询应用,其中查询允许为垂直线段。我们证明,无论查询在空间中的位置如何,简单的深度优先搜索都能在 $O(k+\log n)$ 期望时间内报告与查询线段相交的 $k$ 个梯形。该界限是最优的,并且与已知的 $O(n)$ 空间数据结构相匹配。在输入为连通平面图的边这一重要情形下,我们的简化方法可获得 $O(n \log^*\\!n)$ 的期望构建时间,这改进了已知垂直线段查询结构的构建时间。同样对于连通输入,一个简单的扩展使TSD方法能够在 $O(k + \log n)$ 期望时间内直接回答轴对齐窗口查询,其中 $k$ 为结果规模。

英文摘要:

We propose a new query application for the well-known Trapezoidal Search DAG (TSD) of a set of $n$~line segments in the plane, where queries are allowed to be {\em vertical line segments}. We show that a simple Depth-First Search reports the $k$ trapezoids that are intersected by the query segment in $O(k+\log n)$ expected time, regardless of the spatial location of the query. This bound is optimal and matches known data structures with $O(n)$ size. In the important case of edges from a connected, planar graph, our simplistic approach yields an expected $O(n \log^*\!n)$ construction time, which improves on the construction time of known structures for vertical segment-queries. Also for connected input, a simple extension allows the TSD approach to directly answer axis-aligned window-queries in $O(k + \log n)$ expected time, where $k$ is the result size.

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

↑