English

Canonical polygon Queries on the plane: a New Approach

Computational Geometry 2009-07-30 v2 Data Structures and Algorithms

Abstract

The polygon retrieval problem on points is the problem of preprocessing a set of nn points on the plane, so that given a polygon query, the subset of points lying inside it can be reported efficiently. It is of great interest in areas such as Computer Graphics, CAD applications, Spatial Databases and GIS developing tasks. In this paper we study the problem of canonical kk-vertex polygon queries on the plane. A canonical kk-vertex polygon query always meets the following specific property: a point retrieval query can be transformed into a linear number (with respect to the number of vertices) of point retrievals for orthogonal objects such as rectangles and triangles (throughout this work we call a triangle orthogonal iff two of its edges are axis-parallel). We present two new algorithms for this problem. The first one requires O(nlog2n)O(n\log^2{n}) space and O(klog3nloglogn+A)O(k\frac{log^3n}{loglogn}+A) query time. A simple modification scheme on first algorithm lead us to a second solution, which consumes O(n2)O(n^2) space and O(klognloglogn+A)O(k \frac{logn}{loglogn}+A) query time, where AA denotes the size of the answer and kk is the number of vertices. The best previous solution for the general polygon retrieval problem uses O(n2)O(n^2) space and answers a query in O(klogn+A)O(k\log{n}+A) time, where kk is the number of vertices. It is also very complicated and difficult to be implemented in a standard imperative programming language such as C or C++.

Keywords

Cite

@article{arxiv.0805.2681,
  title  = {Canonical polygon Queries on the plane: a New Approach},
  author = {Spyros Sioutas and Dimitrios Sofotassios and Kostas Tsichlas and Dimitrios Sotiropoulos and Panayiotis Vlamos},
  journal= {arXiv preprint arXiv:0805.2681},
  year   = {2009}
}

Comments

7 pages, 9 figures, Accepted for publication in Journal of Computers (JCP), http://www.informatik.uni-trier.de/~ley/db/journals/jcp/index.html

R2 v1 2026-06-21T10:41:45.243Z