English

Efficient Algorithms to Test Digital Convexity

Computational Geometry 2019-01-16 v1

Abstract

A set SZdS \subset \mathbb{Z}^d is digital convex if conv(S)Zd=Sconv(S) \cap \mathbb{Z}^d = S, where conv(S)conv(S) denotes the convex hull of SS. In this paper, we consider the algorithmic problem of testing whether a given set SS of nn lattice points is digital convex. Although convex hull computation requires Ω(nlogn)\Omega(n \log n) time even for dimension d=2d = 2, we provide an algorithm for testing the digital convexity of SZ2S\subset \mathbb{Z}^2 in O(n+hlogr)O(n + h \log r) time, where hh is the number of edges of the convex hull and rr is the diameter of SS. This main result is obtained by proving that if SS is digital convex, then the well-known quickhull algorithm computes the convex hull of SS in linear time. In fixed dimension dd, we present the first polynomial algorithm to test digital convexity, as well as a simpler and more practical algorithm whose running time may not be polynomial in nn for certain inputs.

Keywords

Cite

@article{arxiv.1901.04738,
  title  = {Efficient Algorithms to Test Digital Convexity},
  author = {Loïc Crombez and Guilherme D. da Fonseca and Yan Gérard},
  journal= {arXiv preprint arXiv:1901.04738},
  year   = {2019}
}
R2 v1 2026-06-23T07:12:08.325Z