Abstract
The Smallest Enclosing Disk (SED) problem is a fundamental challenge in computational geometry with wide-ranging applications in computer graphics and machine learning. While exact linear-time algorithms exist, their practical implementation often suffers from high constant factors or numerical instability. This paper presents a deterministic approximation algorithm (ASED) that leverages geometric duality and a nested dichotomic search. By trading a controllable amount of precision for significant gains in speed and simplicity, the proposed method outperforms traditional exact solvers by an order of magnitude while maintaining robustness across challenging point distributions.
Introduction
The objective of the Smallest Enclosing Disk problem is to find the unique circle of minimum radius that contains a given set of $n$ points in a 2D plane. Since its inception in the 19th century, various approaches have been developed, ranging from Welzl’s randomized algorithm to exact linear-time methods. However, in real-time environments—such as collision detection or bounding volume hierarchy construction—the overhead of exact computation can be prohibitive. Heuristics like Ritter’s method offer speed but often result in disks significantly larger than the optimal solution.
The ASED algorithm addresses this gap by providing a high-speed, deterministic approximation. It is designed for applications where a nearly optimal solution delivered within a strict time budget is preferable to an exact solution that arrives too late.
Methodology: Piercing/Covering Duality
The core innovation of the ASED algorithm lies in transforming the covering problem into a piercing problem. Instead of directly searching for the smallest radius $r^*$ and center $c^*$ that covers all points $P_i$, the algorithm asks: "For a given radius $r$, is there a point $c$ that is contained within the intersection of all disks $B_i(r)$ centered at $P_i$?"
As illustrated in Figure 1, if the intersection of disks $B_i(r)$ is non-empty, then a disk of radius $r$ can cover all points. This duality allows the problem to be solved via a nested binary search (dichotomic search). The algorithm searches for the optimal radius $r$ and the optimal x-coordinate for the center. To further optimize performance, a "bootstrapping" technique is employed, iteratively refining the search space to achieve a theoretical complexity of $O(n \log \frac{1}{\epsilon})$, where $\epsilon$ represents the desired precision.
A key advantage of this approach is its reliance on simple algebraic predicates of degree 2 (squared distance comparisons). By avoiding complex geometric primitives like circumcircle calculations, the algorithm remains numerically stable and can be implemented in approximately 30 lines of C code.
Experimental Results
The ASED algorithm was evaluated against two industry standards: the exact solver by D. H. Eberly and the heuristic Ritter’s method. Tests were conducted on synthetic datasets of 100,000 points using both uniform square distributions and thin unit ring distributions. The latter is particularly challenging for many geometric algorithms due to the high density of points near the boundary.
As shown in Figure 3, the ASED algorithm demonstrates superior performance in practical scenarios. At a precision of $\epsilon = 10^{-5}$, ASED is approximately 10 times faster than Eberly’s exact implementation. While Ritter’s method remains the fastest due to its one-pass nature, it is known to produce radii up to 15% larger than the optimum. In contrast, ASED allows the user to tune the precision parameter $\epsilon$ to meet specific application requirements. Furthermore, the deterministic nature of ASED ensures predictable execution times, which is critical for frame-rate-dependent software.
Conclusion
The ASED algorithm provides a robust and efficient alternative to traditional SED solvers. By utilizing geometric duality and a simple search strategy, it achieves high precision with minimal computational overhead. Its ease of implementation and deterministic performance make it an ideal candidate for real-time demanding applications in computer vision, robotics, and graphics. Future work may involve extending this dichotomic search framework to 3D spheres and higher-dimensional bounding volumes.
Summary updated