rubytran
November 3rd, 2005, 05:13 AM
my problem statement:
Given a finite set of rectangles and a strip with known width and infinite height.
The rectangles are placed on a strip without crossing the boundary of the strip and overlapping the packing rectangle.
Objective: the height of the strip used is minimized.
The heuristic: For packing of the rectangles in the strip, these rectangles are arranged from the bottom-left-right position of the strip. After placing each rectangle on the strip, new positions (nodes) for placing the next rectangle are identified. The positioning of rectangle on the strip is based on a 2D translation.
Do anyone know an algorithm in C++ nearly the same my prolem?
Given a finite set of rectangles and a strip with known width and infinite height.
The rectangles are placed on a strip without crossing the boundary of the strip and overlapping the packing rectangle.
Objective: the height of the strip used is minimized.
The heuristic: For packing of the rectangles in the strip, these rectangles are arranged from the bottom-left-right position of the strip. After placing each rectangle on the strip, new positions (nodes) for placing the next rectangle are identified. The positioning of rectangle on the strip is based on a 2D translation.
Do anyone know an algorithm in C++ nearly the same my prolem?