Suppose I have a set of points in a Cartesian plane defined by an array / coordinate vector (X, Y). This set of points will be “adjacent” in the coordinate plane if any set of discontinuous points can be adjacent. That is, these points arose as a rectangular grid in which the areas of the points were eliminated using the previous algorithm. The shape indicated by dots is arbitrary, but it will have arcs for the edges.
Suppose further that I can create circles with a fixed radius r .
I need an algorithm that will find me the center of X,Y for a circle that will be as close as possible to half of the points indicated.
source share