English

Practical Insertion-Only Convex Hull

Computational Geometry 2025-08-26 v1

Abstract

Convex hull data structures are fundamental in computational geometry. We study insertion-only data structures, supporting various containment and intersection queries. When PP is sorted by xx- or yy-coordinate, convex hulls can be constructed in linear time using classical algorithms such as Graham scan. We investigate a variety of methods tailored to the insertion-only setting. We explore a broad selection of trade-offs involving robustness, memory access patterns, and space usage, providing an extensive evaluation of both existing and novel techniques. Logarithmic-time methods rely on pointer-based tree structures, which suffer in practice due to poor memory locality. Motivated by this, we develop a vector-based solution inspired by Overmars' logarithmic method. Our structure has worse asymptotic bounds, supporting queries in O(log2n)O(\log^2 n) time, but stores data in O(logn)O(\log n) contiguous vectors, greatly improving cache performance. Through empirical evaluation on real-world and synthetic data sets, we uncover surprising trends. Let hh denote the size of the convex hull. We show that a na\"ive O(h)O(h) insertion-only algorithm based on Graham scan consistently outperforms both theoretical and practical state-of-the-art methods under realistic workloads, even on data sets with rather large convex hulls. While tree-based methods with O(logh)O(\log h) update times offer solid theoretical guarantees, they are never optimal in practice. In contrast, our vector-based logarithmic method, despite its theoretically inferior bounds, is highly competitive across all tested scenarios. It is optimal whenever the convex hull becomes large.

Keywords

Cite

@article{arxiv.2508.17496,
  title  = {Practical Insertion-Only Convex Hull},
  author = {Ivor van der Hoog and Henrik Reinstädtler and Eva Rotenberg},
  journal= {arXiv preprint arXiv:2508.17496},
  year   = {2025}
}
R2 v1 2026-07-01T05:03:42.150Z