English

Quickest Visibility Queries in Polygonal Domains

Computational Geometry 2017-03-10 v1 Data Structures and Algorithms

Abstract

Let ss be a point in a polygonal domain P\mathcal{P} of h1h-1 holes and nn vertices. We consider a quickest visibility query problem. Given a query point qq in P\mathcal{P}, the goal is to find a shortest path in P\mathcal{P} to move from ss to see qq as quickly as possible. Previously, Arkin et al. (SoCG 2015) built a data structure of size O(n22α(n)logn)O(n^22^{\alpha(n)}\log n) that can answer each query in O(Klog2n)O(K\log^2 n) time, where α(n)\alpha(n) is the inverse Ackermann function and KK is the size of the visibility polygon of qq in P\mathcal{P} (and KK can be Θ(n)\Theta(n) in the worst case). In this paper, we present a new data structure of size O(nlogh+h2)O(n\log h + h^2) that can answer each query in O(hloghlogn)O(h\log h\log n) time. Our result improves the previous work when hh is relatively small. In particular, if hh is a constant, then our result even matches the best result for the simple polygon case (i.e., h=1h=1), which is optimal. As a by-product, we also have a new algorithm for a shortest-path-to-segment query problem. Given a query line segment τ\tau in P\mathcal{P}, the query seeks a shortest path from ss to all points of τ\tau. Previously, Arkin et al. gave a data structure of size O(n22α(n)logn)O(n^22^{\alpha(n)}\log n) that can answer each query in O(log2n)O(\log^2 n) time, and another data structure of size O(n3logn)O(n^3\log n) with O(logn)O(\log n) query time. We present a data structure of size O(n)O(n) with query time O(hlognh)O(h\log \frac{n}{h}), which also favors small values of hh and is optimal when h=O(1)h=O(1).

Keywords

Cite

@article{arxiv.1703.03048,
  title  = {Quickest Visibility Queries in Polygonal Domains},
  author = {Haitao Wang},
  journal= {arXiv preprint arXiv:1703.03048},
  year   = {2017}
}

Comments

A preliminary version to appear in SoCG 2017

R2 v1 2026-06-22T18:40:16.033Z