I think the main assumption is that you have a dataset that you can easily relate, since many algorithms that would be βgood enoughβ in practice may not be rigorous enough for theory and / or may not scale good for arbitrarily large solutions.
A very simple solution, which is probably "good enough", is to sort the coordinates by Y-coordinate, then make a stable view by X-coordinate.
Take the rectangle defined by the values ββmin (X, Y) and max (X, Y), complexity O (1), because the values ββwill be in known places in the sorted dataset.
Now, working from the center of your sorted dataset, find the coordinate values ββas close as possible to {Xctr = Xmin + (Xmax - Xmin) / 2, Yctr = Ymin + (Ymax - Ymin) / 2} - O (N) complexity limited by your minimization criteria, distance is the familiar radius of {Xctr, Yctr}.
In the worst case, the difficulty will be to compare your center at every other point, but as soon as you get away from the midpoints, you will not improve the global optimal and should stop searching.
source share