HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, given a non-empty set of objects of finite extension in d-dimensional
space Space is a three-dimensional continuum containing positions and directions. In classical physics, physical space is often conceived in three linear dimensions. Modern physicists usually consider it, with time, to be part of a boundless ...
, for example a set of points, a bounding sphere, enclosing sphere or enclosing ball for that set is a d-dimensional solid sphere containing all of these objects. Used in
computer graphics Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
and computational geometry, a bounding sphere is a special type of
bounding volume In computer graphics and computational geometry, a bounding volume (or bounding region) for a set of objects is a closed region that completely contains the union of the objects in the set. Bounding volumes are used to improve the efficiency ...
. There are several fast and simple bounding sphere construction algorithms with a high practical value in real-time computer graphics applications. In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
and
operations research Operations research () (U.S. Air Force Specialty Code: Operations Analysis), often shortened to the initialism OR, is a branch of applied mathematics that deals with the development and application of analytical methods to improve management and ...
, the objects are typically points, and generally the sphere of interest is the minimal bounding sphere, that is, the sphere with minimal radius among all bounding spheres. It may be proven that such a sphere is unique: If there are two of them, then the objects in question lie within their intersection. But an intersection of two non-coinciding spheres of equal radius is contained in a sphere of smaller radius. The problem of computing the center of a minimal bounding sphere is also known as the "unweighted Euclidean
1-center problem The 1-center problem, also known as minimax problem or minmax location problem, is a classical combinatorial optimization problem in operations research of facilities location type. In its most general case the problem is stated as follows: given ...
".


Applications


Clustering

Such spheres are useful in clustering, where groups of similar data points are classified together. In
statistical analysis Statistical inference is the process of using data analysis to infer properties of an underlying probability distribution.Upton, G., Cook, I. (2008) ''Oxford Dictionary of Statistics'', OUP. . Inferential statistical analysis infers properties of ...
the
scattering In physics, scattering is a wide range of physical processes where moving particles or radiation of some form, such as light or sound, are forced to deviate from a straight trajectory by localized non-uniformities (including particles and radiat ...
of
data points In statistics, a unit of observation is the unit described by the data that one analyzes. A study may treat groups as a unit of observation with a country as the unit of analysis, drawing conclusions on group characteristics from data collected a ...
within a sphere may be attributed to
measurement error Observational error (or measurement error) is the difference between a measured value of a quantity and its unknown true value.Dodge, Y. (2003) ''The Oxford Dictionary of Statistical Terms'', OUP. Such errors are inherent in the measurement pr ...
or natural (usually thermal) processes, in which case the cluster represents a perturbation of an ideal point. In some circumstances this ideal point may be used as a substitute for the points in the cluster, advantageous in reducing calculation time. In
operations research Operations research () (U.S. Air Force Specialty Code: Operations Analysis), often shortened to the initialism OR, is a branch of applied mathematics that deals with the development and application of analytical methods to improve management and ...
the clustering of values to an ideal point may also be used to reduce the number of inputs in order to obtain approximate values for
NP-hard In computational complexity theory, a computational problem ''H'' is called NP-hard if, for every problem ''L'' which can be solved in non-deterministic polynomial-time, there is a polynomial-time reduction from ''L'' to ''H''. That is, assumi ...
problems in a reasonable time. The point chosen is not usually the center of the sphere, as this can be biased by outliers, but instead some form of average location such as a
least squares The method of least squares is a mathematical optimization technique that aims to determine the best fit function by minimizing the sum of the squares of the differences between the observed values and the predicted values of the model. The me ...
point is computed to represent the cluster.


Algorithms

There are exact and approximate algorithms for solving the bounding sphere problem.


Linear programming

Nimrod Megiddo Nimrod Megiddo () is a mathematician and computer scientist. He is a research scientist at the IBM Almaden Research Center and Stanford University. His interests include combinatorial optimization, algorithm design and analysis, game theory, and ...
studied the 1-center problem extensively and published on it at least five times in the 1980s. In 1983, he proposed a "
prune and search Prune and search is a method of solving optimization problems suggested by Nimrod Megiddo in 1983.Nimrod Megiddo (1983) Linear-time algorithms for linear programming in R3 and related problems. SIAM J. Comput., 12:759–776 The basic idea of ...
" algorithm which finds the optimum bounding sphere and runs in linear time if the dimension is fixed as a constant. When the dimension d is taken into account, the execution time complexity is O(2^ n), which is impractical for high-dimensional applications. In 1991,
Emo Welzl Emmerich (Emo) Welzl (born 4 August 1958 in Linz, Austria)Curriculum vitae
retrieved 2012-02-11.
is a ...
proposed a much simpler
randomized algorithm A randomized algorithm is an algorithm that employs a degree of randomness as part of its logic or procedure. The algorithm typically uses uniformly random bits as an auxiliary input to guide its behavior, in the hope of achieving good performan ...
, generalizing a randomized
linear programming Linear programming (LP), also called linear optimization, is a method to achieve the best outcome (such as maximum profit or lowest cost) in a mathematical model whose requirements and objective are represented by linear function#As a polynomia ...
algorithm by
Raimund Seidel Raimund G. Seidel is a German and Austrian theoretical computer scientist and an expert in computational geometry. Seidel was born in Graz, Austria, and studied with Hermann Maurer at the Graz University of Technology. He earned his M.Sc. in 1 ...
. The expected running time of Welzl's algorithm is O((d+1)(d+1)!n), which again reduces to O(n) for any fixed dimension d. The paper provides experimental results demonstrating its practicality in higher dimensions. A more recent deterministic algorithm of
Timothy Chan Timothy Moon-Yew Chan is a Founder ProfessorTwo ...
also runs in O(n) time, with a smaller (but still exponential) dependence on the dimension. The open-source
Computational Geometry Algorithms Library The Computational Geometry Algorithms Library (CGAL) is an open source software library of computational geometry algorithms. While primarily written in C++, Scilab bindings and bindings generated with SWIG (supporting Python and Java for now) ...
(CGAL) contains an implementation of Welzl's algorithm.


Ritter's bounding sphere

In 1990, Jack Ritter proposed a simple algorithm to find a non-minimal bounding sphere. It is widely used in various applications for its simplicity. The algorithm works in this way: #Pick a point x from P, search a point y in P, which has the largest distance from x; #Search a point z in P, which has the largest distance from y. Set up an initial ball B, with its centre as the midpoint of y and z, the radius as half of the distance between y and z; #If all points in P are within ball B, then we get a bounding sphere. Otherwise, let p be a point outside the ball, constructs a new ball covering both point p and previous ball. Repeat this step until all points are covered. Ritter's algorithm runs in time O(nd) on inputs consisting of n points in d-dimensional space, which makes it very efficient. However, it gives only a coarse result which is usually 5% to 20% larger than the optimum.


Core-set based approximation

Bădoiu et al. presented a 1+\varepsilon approximation to the bounding sphere problem, where a 1+\varepsilon approximation means that the constructed sphere has radius at most (1+\varepsilon)r, where r is the smallest possible radius of a bounding sphere. A
coreset In computational geometry, a coreset of an input set is a subset of points, such that solving a problem on the coreset provably yields similar results as solving the problem on the entire point set, for some given family of problems. Coresets are ...
is a small subset, that a 1+\varepsilon expansion of the solution on the subset is a bounding sphere of the whole set. The coreset is constructed incrementally by adding the farthest point into the set in each iteration. Kumar et al. improved this approximation algorithm so that it runs in time O(\frac+ \frac\log).


Fischer's exact solver

Fischer et al. (2003) proposed an exact solver, though the algorithm does not have a polynomial running time in the worst case. The algorithm is purely combinatorial and implements a pivoting scheme similar to the
simplex method In mathematical optimization, Dantzig's simplex algorithm (or simplex method) is a popular algorithm for linear programming. The name of the algorithm is derived from the concept of a simplex and was suggested by T. S. Motzkin. Simplices are n ...
for
linear programming Linear programming (LP), also called linear optimization, is a method to achieve the best outcome (such as maximum profit or lowest cost) in a mathematical model whose requirements and objective are represented by linear function#As a polynomia ...
, used earlier in some heuristics. It starts with a large sphere that covers all points and gradually shrinks it until it cannot be shrunk further. The algorithm features correct termination rules in cases of degeneracies, overlooked by prior authors; and efficient handling of partial solutions, which produces a major speed-up. The authors verified that the algorithm is efficient in practice in low and moderately low (up to 10,000) dimensions and claim it does not exhibit numerical stability problems in its floating-point operations. A C++ implementation of the algorithm is available as an open-source project.miniball open-source project
/ref>


Extremal points optimal sphere

proposed the "extremal points optimal sphere" method with controllable speed to accuracy approximation to solve the bounding sphere problem. This method works by taking a set of s direction vectors and projecting all points onto each vector in s; s serves as a speed-accuracy trade-off variable. An exact solver is applied to the 2s extremal points of these projections. The algorithm then iterates over the remaining points, if any, growing the sphere if necessary. For large n this method is orders of magnitude faster than exact methods, while giving comparable results. It has a worst case time of O(sn).


See also

*
Bounding volume In computer graphics and computational geometry, a bounding volume (or bounding region) for a set of objects is a closed region that completely contains the union of the objects in the set. Bounding volumes are used to improve the efficiency ...
*
Circumscribed sphere In geometry, a circumscribed sphere of a polyhedron is a sphere that contains the polyhedron and touches each of the polyhedron's Vertex (geometry), vertices. The word circumsphere is sometimes used to mean the same thing, by analogy with the te ...
,
circumscribed circle In geometry, a circumscribed circle for a set of points is a circle passing through each of them. Such a circle is said to ''circumscribe'' the points or a polygon formed from them; such a polygon is said to be ''inscribed'' in the circle. * Circu ...


References

{{reflist, refs= {{citation , last1 = Bādoiu , first1 = Mihai , last2 = Har-Peled , first2 = Sariel , author2-link = Sariel Har-Peled , last3 = Indyk , first3 = Piotr , author3-link = Piotr Indyk , contribution = Approximate clustering via core-sets , contribution-url = https://www.cs.duke.edu/courses/spring07/cps296.2/papers/badoiu02approximate.pdf , doi = 10.1145/509907.509947 , mr = 2121149 , pages = 250–257 , publisher = ACM , location = New York, NY, US , title = Proceedings of the Thirty-Fourth Annual ACM Symposium on Theory of Computing , year = 2002, s2cid = 5409535 , citeseerx = 10.1.1.4.9395 {{citation , last = Larsson , first = Thomas , contribution = Fast and tight fitting bounding spheres , contribution-url = https://www.ep.liu.se/ecp/article.asp?issue=034&article=9 , series = Linköping Electronic Conference Proceedings , publisher = Linköping University , location = Linköping, Sweden , title = SIGRAD 2008: The Annual SIGRAD Conference, Special Theme: Interaction, November 27-28, 2008, Stockholm, Sweden , volume = 34 , year = 2008 {{citation , last1 = Fischer , first1 = Kaspar , last2 = Gärtner , first2 = Bernd , last3 = Kutz , first3 = Martin , editor1-last = Battista , editor1-first = Giuseppe Di , editor2-last = Zwick , editor2-first = Uri , contribution = Fast smallest-enclosing-ball computation in high dimensions , contribution-url = https://people.inf.ethz.ch/gaertner/subdir/texts/own_work/seb.pdf , doi = 10.1007/978-3-540-39658-1_57 , pages = 630–641 , publisher = Springer, Berlin , series = Lecture Notes in Computer Science , title = Algorithms: ESA 2003, 11th Annual European Symposium, Budapest, Hungary, September 16-19, 2003, Proceedings , volume = 2832 , isbn = 978-3-540-20064-2 , year = 2003, url = http://www.mpi-inf.mpg.de/~mkutz/pubs/FiGaeKu_SmallEnclBalls.pdf {{citation , last1 = Kumar , first1 = Piyush , last2 = Mitchell , first2 = Joseph S. B. , author2-link = Joseph S. B. Mitchell , last3 = Yıldırım , first3 = E. Alper , editor-last = Ladner , editor-first = Richard E. , contribution = Computing core-sets and approximate smallest enclosing hyperspheres in high dimensions , pages = 45–55 , publisher = SIAM , location = Philadelphia, PA, US , title = Proceedings of the Fifth Workshop on Algorithm Engineering and Experiments, Baltimore, MD, USA, January 11, 2003 , year = 2003 {{citation , last = Ritter , first = Jack , editor-last = Glassner , editor-first = Andrew S. , contribution = An efficient bounding sphere , isbn = 0-12-286166-3 , location = San Diego, CA, US , pages = 301–303 , publisher = Academic Press Professional, Inc. , title = Graphics Gems , year = 1990 {{cite journal , last = Megiddo , first = Nimrod , author-link = Nimrod Megiddo , title = Linear programming in linear time when the dimension is fixed , doi = 10.1145/2422.322418 , journal = Journal of the ACM , pages = 114–147 , volume = 33 , issue = 1 , year = 1988 , s2cid = 12686747 , doi-access = free {{citation , last = Welzl , first = Emo , author-link = Emo Welzl , editor-last = Maurer , editor-first = Hermann , contribution = Smallest enclosing disks (balls and ellipsoids) , doi = 10.1007/BFb0038202 , mr = 1254721 , pages = 359–370 , publisher = Springer , location = Berlin, Germany , series = Lecture Notes in Computer Science , title = New Results and New Trends in Computer Science: Graz, Austria, June 20–21, 1991, Proceedings , url = https://scholar.archive.org/work/7rcfutcwczbrnkmey7f42vscom , volume = 555 , isbn = 3-540-54869-6 , year = 1991 {{cite journal , last = Chan , first = Timothy , author-link = Timothy Chan , title = Improved deterministic algorithms for linear programming in low dimensions , doi = 10.1145/3155312 , journal = ACM Transactions on Algorithms , volume = 14 , issue = 3 , pages = Article 30, 10 pages , year = 2018 , s2cid = 9345339


External links


Smallest Enclosing Circle Problem
– describes several algorithms for enclosing a point set, including Megiddo's linear-time algorithm Geometric algorithms Spheres