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

直线排列中直线区域的一种简单算法

A Simple Algorithm for Computing the Zone of a Line in an Arrangement of Lines

Haitao Wang

摘要:

令$L$是平面中的一组$n$线。$L$的排列$\mathcal{A}(L)$中的线$\ell$的区域$Z(\ell)$是其闭包与$\ell$相交的$\mathcal{A}(L)$的面的集合。已知$Z(\ell)$的组合大小为$O(n)$。给定$L$和$\ell$,计算$Z(\ell)$是一个基本问题。如果已经构建了$\mathcal{A}(L)$,则存在用于计算$Z(\ell)$的线性时间算法,但是构建$\mathcal{A}(L)$需要$O(n^2)$时间。另一方面,不依赖于$\mathcal{A}(L)$计算$Z(\ell)$的$O(n\log n)$时间算法也是已知的,但是这些算法相对复杂.在本文中,我们提出了一种可以在$O(n\log n)$时间内计算$Z(\ell)$的简单算法。更具体地,一旦已知$\ell$和$L$的行之间的交叉点的排序列表,则算法在$O(n)$时间内运行。我们的算法的一个很大的优势,主要涉及格雷厄姆的扫描风格的过程,是它的简单性。

英文摘要:

Let $L$ be a set of $n$ lines in the plane. The zone $Z(\ell)$ of a line $\ell$ in the arrangement $\mathcal{A}(L)$ of $L$ is the set of faces of $\mathcal{A}(L)$ whose closure intersects $\ell$. It is known that the combinatorial size of $Z(\ell)$ is $O(n)$. Given $L$ and $\ell$, computing $Z(\ell)$ is a fundamental problem. Linear-time algorithms exist for computing $Z(\ell)$ if $\mathcal{A}(L)$ has already been built, but building $\mathcal{A}(L)$ takes $O(n^2)$ time. On the other hand, $O(n\log n)$-time algorithms are also known for computing $Z(\ell)$ without relying on $\mathcal{A}(L)$, but these algorithms are relatively complicated. In this paper, we present a simple algorithm that can compute $Z(\ell)$ in $O(n\log n)$ time. More specifically, once the sorted list of the intersections between $\ell$ and the lines of $L$ is known, the algorithm runs in $O(n)$ time. A big advantage of our algorithm, which mainly involves a Graham's scan style procedure, is its simplicity.

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

↑