An interesting variation is Dynamic Storage Allocation, in which the rectangles can slide only alongside one axis. AKA "static memory allocation", since the heights of the rectangles can be interpreted as buffer sizes, and their widths as lifetimes. Most of my PhD's effort has been devoted to beating the SOTA in this. Problem's importance nowadays is owed to deep learning's memory wall.
The Skyline algorithm for packing 2D rectangles
11–20 of 60 posts
Re: The Skyline algorithm for packing 2D rectangles
#12The README even mentions the guillotine algorithm / method that someone else posted (not the same link, but the same method).
Re: The Skyline algorithm for packing 2D rectangles
#13Very fun. I wonder if a heap could improve the performance of the "loop through the skyline in order to find the best candidate location" step. (I think it would improve the asymptotic time, if I'm understanding the algorithm correctly, but obviously the real performance is more complex).
Re: The Skyline algorithm for packing 2D rectangles
#14At a glance, this feels like a good case for an exact cover algorithm. Would be neat to see how that compares, here.
Re: The Skyline algorithm for packing 2D rectangles
#15This looks useful for auto-placing parts inside a PCB.
Packing has so many applications for different things. Such as optimal packing of a truck or shipping container. Or how to optimally pack graphics into a GPU texture. I had this guy as a prof. https://en.wikipedia.org/wiki/David_A._Klarner I have never encountered someone so excited about dividing up rectangles, as it is related to combinatorics. Also with such a seething hatred for floating point numbers.
Re: The Skyline algorithm for packing 2D rectangles
#16An interesting variation is Dynamic Storage Allocation, in which the rectangles can slide only alongside one axis. AKA "static memory allocation", since the heights of the rectangles can be interpreted as buffer sizes, and their widths as lifetimes. Most of my PhD's effort has been devoted to beating the SOTA in this. Problem's importance nowadays is owed to deep learning's memory wall.
nice! you have your thesis or any related paper available online?
Re: The Skyline algorithm for packing 2D rectangles
#17This looks useful for auto-placing parts inside a PCB.
Packing has so many applications for different things. Such as optimal packing of a truck or shipping container. Or how to optimally pack graphics into a GPU texture. I had this guy as a prof. https://en.wikipedia.org/wiki/David_A._Klarner I have never encountered someone so excited about dividing up rectangles, as it is related to combinatorics. Also with such a seething hatred for floating point numbers.
Re: The Skyline algorithm for packing 2D rectangles
#18Re: The Skyline algorithm for packing 2D rectangles
#19Re: The Skyline algorithm for packing 2D rectangles
#20This looks useful for auto-placing parts inside a PCB.
Packing has so many applications for different things. Such as optimal packing of a truck or shipping container. Or how to optimally pack graphics into a GPU texture. I had this guy as a prof. https://en.wikipedia.org/wiki/David_A._Klarner I have never encountered someone so excited about dividing up rectangles, as it is related to combinatorics. Also with such a seething hatred for floating point numbers.