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.
Just found this link :The minimum perimeter convex hull of a subset of a point set
the most voted answer gave sources to find minimum area k-gon, so now by binary search, the complexity can be O(n^4*(logn))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With