Re: Algorithm to fit rectangles with different areas inside a matrix with lowest complexity
- From: "Dani Camps" <danicamps81@xxxxxxxxx>
- Date: 12 Jul 2006 04:02:25 -0700
Hi Jacko,
Thanks for replying. The problem in my view, as I commented in Chris'
reply, is how to know which is the object with smallest growth impact.
Because in general if object 1 is bigger than object 2 under one rule
this is not telling me anything about their relation in another rule,
then when 2 objects collide and I place one of then I have to evaluate
all the possibilities that happen from that point on, i.e the other
object could collide with another one and new possibilities appear.
In my view is like a tree, where the root is the allocation where all
the objects are allocated according to rule 1. When N objects want to
be allocated in a place and they do not fit, then m new branches appear
in the tree, where m accounts for all the possible allocations of the
contending objects in that place. At every branch in the tree we can
associate the area that is allocated if we take that branch.
The optimum algorithm would be the one that is able to find in this
tree the path that results in the smallest area at the end (adding the
area allocated in every brach). For doing that I think it is needed a
criteria or indication every time that a node with multiple branches
appear to decide which is the branch that with most probability will
lead to the smallest area at the end. That is what I was trying to do
defining assumption (1) in the previous post.
What do you think ?
BR
Dani
jacko wrote:
place all objects in a place where they are smallest. then jiggle for
smallest overlap
if collision of location occurs, relocate object with smallest growth
impact to second size. then jiggle
in this way all objects go through go through scaling.
jiggleing is best don through genetic algorithms a la PCB optimization.
cheers
.
- Follow-Ups:
- References:
- Prev by Date: Re: Algorithm to fit rectangles with different areas inside a matrix with lowest complexity
- Next by Date: Re: Boolean Query Algorithm
- Previous by thread: Re: Algorithm to fit rectangles with different areas inside a matrix with lowest complexity
- Next by thread: Re: Algorithm to fit rectangles with different areas inside a matrix with lowest complexity
- Index(es):
Relevant Pages
|