Algorithms for Subpath Convex Hull Queries and Ray-Shooting Among Segments

02/25/2020
by   Haitao Wang, et al.
0

In this paper, we first consider the subpath convex hull query problem: Given a simple path π of n vertices, preprocess it so that the convex hull of any query subpath of π can be quickly obtained. Previously, Guibas, Hershberger, and Snoeyink [SODA 90'] proposed a data structure of O(n) space and O(log nloglog n) query time; reducing the query time to O(log n) increases the space to O(nloglog n). We present an improved result that uses O(n) space while achieving O(log n) query time. Like the previous work, our query algorithm returns a compact interval tree representing the convex hull so that standard binary-search-based queries on the hull can be performed in O(log n) time each. Our new result leads to improvements for several other problems. In particular, with the help of the above result, we present new algorithms for the ray-shooting problem among segments. Given a set of n (possibly intersecting) line segments in the plane, preprocess it so that the first segment hit by a query ray can be quickly found. We give a data structure of O(nlog n) space that can answer each query in (√(n)log n) time. If the segments are nonintersecting or if the segments are lines, then the space can be reduced to O(n). All these are classical problems that have been studied extensively. Previously data structures of O(√(n)) query time (the notation O suppresses a polylogarithmic factor) were known in early 1990s; nearly no progress has been made for over two decades. For all problems, our results provide improvements by reducing the space of the data structures by at least a logarithmic factor while the preprocessing and query times are the same as before or even better.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/18/2022

Simplex Range Searching Revisited: How to Shave Logs in Multi-Level Data Structures

We revisit the classic problem of simplex range searching and related pr...
research
10/16/2021

Constructing Many Faces in Arrangements of Lines and Segments

We present new algorithms for computing many faces in arrangements of li...
research
11/13/2021

Optimal Window Queries on Line Segments using the Trapezoidal Search DAG

We propose new query applications of the well-known Trapezoidal Search D...
research
02/15/2021

On Ray Shooting for Triangles in 3-Space and Related Problems

We consider several problems that involve lines in three dimensions, and...
research
08/13/2022

Intersection Searching amid Tetrahedra in Four Dimensions

We develop data structures for intersection queries in four dimensions t...
research
03/20/2019

Maintaining the Union of Unit Discs under Insertions with Near-Optimal Overhead

We present efficient data structures for problems on unit discs and arcs...
research
07/25/2018

Searching for the closest-pair in a query translate

In this paper, we consider a range-search variant of the closest-pair pr...

Please sign up or login with your details

Forgot password? Click here to reset