Let @math be a point in a polygonal domain @math of @math holes and @math vertices. We consider a quickest visibility query problem. Given a query point @math in @math , the goal is to find a shortest path in @math to move from @math to see @math as quickly as possible. Previously, (SoCG 2015) built a data structure of size @math that can answer each query in @math time, where @math is the inverse Ackermann function and @math is the size of the visibility polygon of @math in @math (and @math can be @math in the worst case). In this paper, we present a new data structure of size @math that can answer each query in @math time. Our result improves the previous work when @math is relatively small. In particular, if @math is a constant, then our result even matches the best result for the simple polygon case (i.e., @math ), 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 @math in @math , the query seeks a shortest path from @math to all points of @math . Previously, gave a data structure of size @math that can answer each query in @math time, and another data structure of size @math with @math query time. We present a data structure of size @math with query time @math , which also favors small values of @math and is optimal when @math .
In the simple polygon case (i.e., @math ), better results are possible for both the quickest visibility queries and the segment queries. For the quickest visibility queries, Khosravi and Ghodsi @cite_9 first proposed a data structure of @math size that can answer each query in @math time. @cite_11 gave an improved result and they built a data structure of @math size in @math time, with @math query time. For the segment queries, @cite_11 built a data structure of @math size in @math time, with @math query time. Chiang and Tamassia @cite_13 achieved the same result for the segment queries and they also gave some more general results (e.g., when the query is a convex polygon).
@cite_9 @cite_13 @cite_11
2118838969 2113370909 2031247977 2560303642
We present a data structure that allows to preprocess a rectilinear polygon with n vertices such that, for any two query points, the shortest path in the rectilinear link or L1-metric can be reported in time O(log n+k) where k is the link length of the shortest path. If only the distance is of interest, the query time reduces to O(log n). Furthermore, if the query points are two vertices, the distance can be reported in time O(1) and a shortest path can be constructed in time O(1+k). The data structure can be computed in time O(n) and needs O(n) storage. As an application we present a linear time algorithm to compute the diameter of a simple rectilinear polygon w.r.t. the L1-metric. In this paper we study two link distance problems for rectilinear paths inside a simple rectilinear polygon P.First, we present a data structure using O(n log n) storage such that a shortest path between two query points can be computed efficiently. If both query points are vertices of P, the query time is O(1 + l), where l is the number of links. If the query points are arbitrary points inside P, then the query time becomes O(log n + l). The resulting path is not only optimal in the rectilinear link metric, but it is optimal in the L1-metric as well. Secondly, it is shown that the rectilinear link diameter of P can be computed in time O(n log n). We also give an approximation algorithm that runs in linear time. This algorithm produces a solution that differs by at most three links from the exact diameter.The solutions are based on a rectilinear version of Chazelle's polygon cutting theorem. This new theorem states that any simple rectilinear polygon can be cut into two rectilinear subpolygons of size at most 34 times the original size, and that such a cut segment can be found in linear time. We consider the two-point query version of the fundamental geometric shortest path problem: Given a set h of polygonal obstacles iu the plane, having a total of n vertices, build a data structure such that for any two query points s and t we can efficiently determine the length, d(s,t), of an Euclidean shortest obstacle-avoiding path, *(s,t), from s to t. Additionally, our data structure should allow one to report the path x(s, t), in time proportional to its (combinatorial) size. We present various methods for solving this two-point query problem, including algorithms with o(n), O(log n+h), 0( h log n), O(log’ n) or optimal O(log n) query times, using polynomial-space data structures, with various tradeoffs between space and query time. While severa results have been known for approtimate twepoint Euclidean shortest path queries, it has been a well-publicized open problem to obtain sublinear query time for the exact version of the problem. Our methods also yield data structures for twc+point shortest path queries on nonconvex polyhedral We propose a novel geometric structure induced by any given convex polygon @math , called @math , which is an arrangement of @math segments, each of which is parallel to an edge of @math , where @math denotes the number of edges of @math . This structure enjoys six simple yet nontrivial properties, which can be derived from two elementary geometric properties -- convexity and parallelism. We then apply @math to solve the geometric optimization problem of computing the parallelogram(s) in @math with the maximum area. We show that the essential nature of the locally maximal area parallelograms is captured by @math and that computing all these parallelograms reduces to answering @math location queries on @math . We answer each of these queries in @math time, and thus obtain an @math time algorithm for this optimization problem. Our algorithm avoids an explicit construction of @math , which would take @math time.