Optimal Window Queries on Line Segments using the Trapezoidal Search DAG

11/13/2021
by   Milutin Brankovic, et al.
0

We propose new query applications of the well-known Trapezoidal Search DAG (TSD) on a set of n line segments in the plane, where queries are allowed to be vertical line segments. We show that our algorithm reports the k trapezoids that are intersected by the query segment in O(k+log n) expected time, regardless of the spatial location of the segment set and the query. This improves on the query time and space bound of the well-known Segment Tree based approach, which is to date the theoretical bottleneck for optimal query time. In the case where the set of segments is a connected planar subdivision, this method can easily be extended to report the k segments which intersect an axis aligned query window in O(k + log n) expected time. Our publicly available implementation handles degeneracies exactly, including segments with overlap and multi-intersections. Experiments on real and synthetic data sets show that the method is practical and provides more reliable query times in comparison to R-trees and the segment tree based data structure.

READ FULL TEXT

page 1

page 3

page 11

page 13

research
02/25/2020

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

In this paper, we first consider the subpath convex hull query problem: ...
research
03/30/2021

Approximate Nearest-Neighbor Search for Line Segments

Approximate nearest-neighbor search is a fundamental algorithmic problem...
research
01/10/2022

Segment Visibility Counting Queries in Polygons

Let P be a simple polygon with n vertices, and let A be a set of m point...
research
03/15/2021

A fast and scalable bottom-left-fill algorithm to solve nesting problems using a semi-discrete representation

We present a fast algorithm to solve nesting problems based on a semi-di...
research
08/03/2016

Query Clustering using Segment Specific Context Embeddings

This paper presents a novel query clustering approach to capture the bro...
research
12/06/2019

A Simple Dynamization of Trapezoidal Point Location in Planar Subdivisions

We study how to dynamize the Trapezoidal Search Tree - a well known rand...
research
05/07/2019

External Memory Planar Point Location with Fast Updates

We study dynamic planar point location in the External Memory Model or D...

Please sign up or login with your details

Forgot password? Click here to reset