Author |
Topic: Packing rectangles (Read 576 times) |
|
mistaken_id
Junior Member
 

Posts: 132
|
 |
Packing rectangles
« on: Mar 1st, 2011, 9:15pm » |
Quote Modify
|
Given a set of rectangles, in the form of tuples (height, width). Pack them, so that none of them overlap, and the result should occupy minimum area. You can rotate the rectangles in 90 degrees.
|
|
IP Logged |
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
    

Gender: 
Posts: 7528
|
 |
Re: Packing rectangles
« Reply #1 on: Mar 2nd, 2011, 1:53am » |
Quote Modify
|
The resulting area, must it be a rectangle? Is the size of the rectangle free? Anyway, that looks NP-hard to me.
|
|
IP Logged |
|
|
|
mistaken_id
Junior Member
 

Posts: 132
|
 |
Re: Packing rectangles
« Reply #2 on: Mar 2nd, 2011, 10:11am » |
Quote Modify
|
Yes, the resulting area must be a rectangle (biggest rectangle that can fit all the given rectangles, aim is to reduce waste area while forming the big triangle)
|
|
IP Logged |
|
|
|
|