A demo made of a 2D-Packing heuristic. The algorithm is given 10,000 randomly generated rectangles, 5 of which have been modified to have fixed positions, and specific locations in the final rectangular surface.
The heuristic is multithreaded, with a "manager/worker" scheduling algorithm. In this movie 1 manager distributes rectangles to 6 workers. The rectangles are colored by the first worker they are given to. Workers return rectangles to the manager when they cannot pack them, and the manager distributes them to other workers.
More information can be found at [ Ссылка ]
Algorithm and video generated by
Dominique Thiebaut, Dept. Computer Science, Smith College, Northampton, MA 01060, USA.
![](https://i.ytimg.com/vi/dIjJHexzPSI/mqdefault.jpg)