Smallest-circle problem

Some instances of the smallest bounding circle.

The smallest-circle problem or minimum covering circle problem is a mathematical problem of computing the smallest circle that contains all of a given set of points in the Euclidean plane. The corresponding problem in n-dimensional space, the smallest bounding-sphere problem, is to compute the smallest n-sphere that contains all of a given set of points.[1] The smallest-circle problem was initially proposed by the English mathematician James Joseph Sylvester in 1857.[2]

The smallest-circle problem in the plane is an example of a facility location problem (the 1-center problem) in which the location of a new facility must be chosen to provide service to a number of customers, minimizing the farthest distance that any customer must travel to reach the new facility.[3] Both the smallest circle problem in the plane, and the smallest bounding sphere problem in any higher-dimensional space of bounded dimension are solvable in linear time.

Characterization

Most of the geometric approaches for the problem look for points that lie on the boundary of the minimum circle and are based on the following simple facts:

  • The minimum covering circle is unique.
  • The minimum covering circle of a set S can be determined by at most three points in S which lie on the boundary of the circle. If it is determined by only two points, then the line segment joining those two points must be a diameter of the minimum circle. If it is determined by three points, then the triangle consisting of those three points is not obtuse.
Proof that the minimum covering disk is unique

Let P be any set of points in the plane, and suppose that there are two smallest enclosing disks of P, with centers at and . Let r be their shared radius, and let be the distance between their centers. Then since P is a subset of both disks it is a subset of their intersection. However, their intersection is contained within the disk with center and radius , as shown in the following image:

Since r is minimal, we must have , meaning , so the disks are identical.[4]

Linear-time solutions

As Nimrod Megiddo showed,[5] the minimum enclosing circle can be found in linear time, and the same linear time bound also applies to the smallest enclosing sphere in Euclidean spaces of any constant dimension.

Emo Welzl[6] proposed a simple randomized algorithm for the minimum covering circle problem that runs in expected time, based on a linear programming algorithm of Raimund Seidel. This algorithm is presented below.

Subsequently, the smallest-circle problem was included in a general class of LP-type problems that can be solved by algorithms like Welzl's based on linear programming. As a consequence of membership in this class, it was shown that the dependence on the dimension of the constant factor in the time bound, which was factorial for Seidel's method, could be reduced to subexponential, while still maintaining only linear dependence on N.[7]

Welzl's algorithm

The algorithm is recursive, and takes as arguments two (finite) sets of points P and R; it computes the smallest enclosing circle of the union of P and R, as long as every point of R is one of the boundary points of the eventual smallest enclosing circle. Thus, the original smallest enclosing circle problem can be solved by calling the algorithm with P equal to the set of points to be enclosed and R equal to the empty set; as the algorithm calls itself recursively, it will enlarge the set R passed into the recursive calls until it includes all the boundary points of the circle.

The algorithm processes the points of P in a random order, maintaining as it does the set S of processed points and the smallest circle D that encloses the union SR. At each step, it tests whether the next point p to be processed is in D; if not, the algorithm replaces the D by the result of a recursive call of the algorithm on the sets S and Rp. Whether the circle was replaced or not, p is then included in the set S. Processing each point, therefore, consists of testing in constant time whether the point belongs to a single circle and possibly performing a recursive call to the algorithm. It can be shown that the overall time is linear.

algorithm welzl:[8]
    input: Finite sets P and R of points in the plane
    output: Minimal disk enclosing P with R on the boundary, or undefined if no such disk exists
    if P is empty or |R| ≥ 3:
        if |R| = 1:
            (we do this to support multisets with duplicate points)
            (we assume that a circle with a radius of zero can exist)
            p := R[0]
            return circle(p, 0)
        else if |R| = 2:
            (we do this to support multisets with duplicate points)
            (we use that the smallest circle between two points has a center at their midpoint)
            (and the segment that passes through them is a diameter of the circle)
            p0 := R[0]
            p1 := R[1]
            center := midpoint(p0, p1)
            diameter := distance(p0, p1)
            return circle(center, diameter / 2)
        else if the points of R are cocircular:
            return the circle they determine
        else:
            return undefined

    choose p in P (randomly and uniformly)
    D := welzl(P - { p }, R)
    if p is in D:
        return D
    return welzl(P - { p }, R ∪ { p })

Other algorithms

Prior to Megiddo's result showing that the smallest-circle problem may be solved in linear time, several algorithms of higher complexity appeared in the literature. A naive algorithm solves the problem in time O(n4) by testing the circles determined by all pairs and triples of points.

  • An algorithm of Chrystal and Peirce applies a local optimization strategy that maintains two points on the boundary of an enclosing circle and repeatedly shrinks the circle, replacing the pair of boundary points, until an optimal circle is found. Chakraborty and Chaudhuri[9] propose a linear-time method for selecting a suitable initial circle and a pair of boundary points on that circle. Each step of the algorithm includes as one of the two boundary points a new vertex of the convex hull, so if the hull has h vertices this method can be implemented to run in time O(nh).
  • Elzinga and Hearn[10] described an algorithm which maintains a covering circle for a subset of the points. At each step, a point not covered by the current sphere is used to find a larger sphere that covers a new subset of points, including the point found. Although its worst case running time is O(h3n), the authors report that it ran in linear time in their experiments. The complexity of the method has been analyzed by Drezner and Shelah.[11] Both Fortran and C codes are available from Hearn, Vijay & Nickel (1995).[12]
  • The smallest sphere problem can be formulated as a quadratic program[1] defined by a system of linear constraints with a convex quadratic objective function. Therefore, any feasible direction algorithm can give the solution of the problem.[13] Hearn and Vijay[14] proved that the feasible direction approach chosen by Jacobsen is equivalent to the Chrystal–Peirce algorithm.
  • The dual to this quadratic program may also be formulated explicitly;[15] an algorithm of Lawson[16] can be described in this way as a primal dual algorithm.[14]
  • Shamos and Hoey[17] proposed an O(n log n) time algorithm for the problem based on the observation that the center of the smallest enclosing circle must be a vertex of the farthest-point Voronoi diagram of the input point set.

Weighted variants of the problem

The weighted version of the minimum covering circle problem takes as input a set of points in a Euclidean space, each with weights; the goal is to find a single point that minimizes the maximum weighted distance to any point. The original minimum covering circle problem can be recovered by setting all weights to the same number. As with the unweighted problem, the weighted problem may be solved in linear time in any space of bounded dimension, using approaches closely related to bounded dimension linear programming algorithms, although slower algorithms are again frequent in the literature.[14][18][19]

See also

References

  1. 1 2 Elzinga, J.; Hearn, D. W. (1972), "The minimum covering sphere problem", Management Science, 19: 96–104, doi:10.1287/mnsc.19.1.96
  2. Sylvester, J. J. (1857), "A question in the geometry of situation", Quarterly Journal of Mathematics, 1: 79 .
  3. Francis, R. L.; McGinnis, L. F.; White, J. A. (1992), Facility Layout and Location: An Analytical Approach (2nd ed.), Englewood Cliffs, N.J.: Prentice–Hall, Inc. .
  4. Welzl 1991, p. 2.
  5. Megiddo, Nimrod (1983), "Linear-time algorithms for linear programming in R3 and related problems", SIAM Journal on Computing, 12 (4): 759–776, doi:10.1137/0212052, MR 0721011 .
  6. Welzl, Emo (1991), "Smallest enclosing disks (balls and ellipsoids)", in Maurer, H., New Results and New Trends in Computer Science, Lecture Notes in Computer Science, 555, Springer-Verlag, pp. 359–370, doi:10.1007/BFb0038202 .
  7. Matoušek, Jiří; Sharir, Micha; Welzl, Emo (1996), "A subexponential bound for linear programming" (PDF), Algorithmica, 16: 498–516, doi:10.1007/BF01940877 .
  8. Welzl 1991.
  9. Chakraborty, R. K.; Chaudhuri, P. K. (1981), "Note on geometrical solutions for some minimax location problems", Transportation Science, 15: 164–166, doi:10.1287/trsc.15.2.164 .
  10. Elzinga, J.; Hearn, D. W. (1972), "Geometrical solutions for some minimax location problems", Transportation Science, 6: 379–394, doi:10.1287/trsc.6.4.379 .
  11. Drezner, Z.; Shelah, S. (1987), "On the complexity of the Elzinga–Hearn algorithm for the 1-center problem", Mathematics of Operations Research, 12 (2): 255–261, doi:10.1287/moor.12.2.255, JSTOR 3689688 .
  12. Hearn, D. W.; Vijay, J.; Nickel, S. (1995), "Codes of geometrical algorithms for the (weighted) minimum circle problem", European Journal of Operational Research, 80: 236–237, doi:10.1016/0377-2217(95)90075-6 .
  13. Jacobsen, S. K. (1981), "An algorithm for the minimax Weber problem", European Journal of Operational Research, 6: 144–148, doi:10.1016/0377-2217(81)90200-9 .
  14. 1 2 3 Hearn, D. W.; Vijay, J. (1982), "Efficient algorithms for the (weighted) minimum circle problem", Operations Research, 30 (4): 777–795, doi:10.1287/opre.30.4.777 .
  15. Elzinga, J.; Hearn, D. W.; Randolph, W. D. (1976), "Minimax multifacility location with Euclidean distances", Transportation Science, 10: 321–336, doi:10.1287/trsc.10.4.321 .
  16. Lawson, C. L. (1965), "The smallest covering cone or sphere", SIAM Review, 7 (3): 415–417, doi:10.1137/1007084 .
  17. Shamos, M. I.; Hoey, D. (1975), "Closest point problems", Proceedings of 16th Annual IEEE Symposium on Foundations of Computer Science, pp. 151–162, doi:10.1109/SFCS.1975.8 .
  18. Megiddo, N. (1983), "The weighted Euclidean 1-center problem", Mathematics of Operations Research, 8: 498–504, doi:10.1287/moor.8.4.498 .
  19. Megiddo, N.; Zemel, E. (1986), "An O(n log n) randomizing algorithm for the weighted Euclidean 1-center problem", Journal of Algorithms, 7: 358–368, doi:10.1016/0196-6774(86)90027-1 .
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.