Given an array of coordinates of some points, and a rope of fixed perimeter, how could I compute the maximum number of points this rope can enclose?(I mean algorithms other than brute force)
eg: given [[0,1],[0,0],[1,1],[1,0],[100,100]]
and rope of length 4, then this rope can enclose the first 4 points.