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

简单且鲁棒的动态二维凸包

Simple and Robust Dynamic Two-Dimensional Convex Hull

Emil Toftegaard Gæde, Inge Li Gørtz, Ivor van der Hoog, Christoffer Krogh, Eva Rotenberg

AI总结:

本文提出一种简单且几何鲁棒的动态二维凸包数据结构,通过简化 Overmars 和 van Leeuwen 的经典结构,在保持 O(log²|P|) 更新时间的同时支持内部点查询和基于秩的数据更新。

摘要:

数据集 $P$ 的凸包是包含 $P$ 的最小凸集。在本文中,我们提出了一种新的凸包数据结构,能够支持高效的动态更新。在动态凸包实现中,以下特性是可取的:(1)能够高效地回答指定点位于凸包内部还是外部的查询算法,(2)遵循几何鲁棒性,以及(3)算法简单性。此外,一种特定但动机明确的二维数据类型是基于秩的数据。这里,输入是一组实数值 $Y$,其中对于任意数 $y\in Y$,其秩是它在 $Y$ 排序顺序中的索引。$Y$ 中的每个值都可以映射到一个点 $(rank, value)$,从而得到一个二维点集。在本文中,我们给出了一种高效、几何鲁棒的动态凸包算法,该算法支持查询一个点是否在内部。此外,当实数值点集受到插入和删除操作时,我们的构造可以用于高效地更新秩有序数据的凸包。我们的改进方案基于对 Overmars 和 van Leeuwen [STOC'80] 的经典凸包数据结构进行的算法简化,并结合了新的算法见解。我们对更新时间给出的理论保证与 Overmars 和 van Leeuwen 的保证相匹配,即 $O(\log^2 |P|)$,同时我们允许更广泛的功能(包括基于秩的数据)。我们的算法简化包括将一个 11 种情况的检查简化为一个 3 种情况的检查,后者可以用 20 行易于阅读的 C 代码编写。我们扩展了我们的解决方案,以在理论保证和算法的实际性能之间提供一种权衡。我们在随机生成或对抗性生成的输入上对我们的解决方案进行了广泛的测试和比较,包括来自文献的基准数据集。

英文摘要:

The convex hull of a data set $P$ is the smallest convex set that contains $P$. In this work, we present a new data structure for convex hull, that allows for efficient dynamic updates. In a dynamic convex hull implementation, the following traits are desirable: (1) algorithms for efficiently answering queries as to whether a specified point is inside or outside the hull, (2) adhering to geometric robustness, and (3) algorithmic simplicity.Furthermore, a specific but well-motivated type of two-dimensional data is rank-based data. Here, the input is a set of real-valued numbers $Y$ where for any number $y\in Y$ its rank is its index in $Y$'s sorted order. Each value in $Y$ can be mapped to a point $(rank, value)$ to obtain a two-dimensional point set. In this work, we give an efficient, geometrically robust, dynamic convex hull algorithm, that facilitates queries to whether a point is internal. Furthermore, our construction can be used to efficiently update the convex hull of rank-ordered data, when the real-valued point set is subject to insertions and deletions. Our improved solution is based on an algorithmic simplification of the classical convex hull data structure by Overmars and van Leeuwen~[STOC'80], combined with new algorithmic insights. Our theoretical guarantees on the update time match those of Overmars and van Leeuwen, namely $O(\log^2 |P|)$, while we allow a wider range of functionalities (including rank-based data). Our algorithmic simplification includes simplifying an 11-case check down to a 3-case check that can be written in 20 lines of easily readable C-code. We extend our solution to provide a trade-off between theoretical guarantees and the practical performance of our algorithm. We test and compare our solutions extensively on inputs that were generated randomly or adversarially, including benchmarking datasets from the literature.

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

↑