2d rectangle clustering given number of clusters needed
Cluster example
I want to write a code that gets the number of rectangles and their corresponding coordinates, and takes a number of cluster and then gives back the clusters with the least total area. I want it to be a code that just goes through every possible scenario and picks the best one. Preferably using MATLAB script
What algorithms or examples can I follow