Re: [algogeeks] box packing

2011-06-04 Thread Piyush Sinha
For the rotation case, sort on the basis of volume... On 6/4/11, NIKHIL nikhil.jain.shali...@gmail.com wrote: given the boxes with dimentions in form (L,B,H) find the sequence in which the boxes can be stored inside the other. for eg. a=4,4,5 b=3,4,3 c=3,4,6 d=2,3,2 a(b(d)) without

Re: [algogeeks] box packing

2011-06-04 Thread Vipul Kumar
For rotation case, take all the orientation of a box in account and now apply the same algo On Sat, Jun 4, 2011 at 3:13 PM, Piyush Sinha ecstasy.piy...@gmail.com wrote: For the rotation case, sort on the basis of volume... On 6/4/11, NIKHIL nikhil.jain.shali...@gmail.com wrote: given the

Re: [algogeeks] box packing

2011-06-04 Thread NIKHIL JAIN
but is my logic correct i have tried it for some cases On Sat, Jun 4, 2011 at 4:20 PM, Vipul Kumar vipul.k.r...@gmail.com wrote: For rotation case, take all the orientation of a box in account and now apply the same algo On Sat, Jun 4, 2011 at 3:13 PM, Piyush Sinha ecstasy.piy...@gmail.com

Re: [algogeeks] box packing

2011-06-04 Thread hary rathor
then u can use radix sort ... -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more

[algogeeks] box packing

2011-06-03 Thread NIKHIL
given the boxes with dimentions in form (L,B,H) find the sequence in which the boxes can be stored inside the other. for eg. a=4,4,5 b=3,4,3 c=3,4,6 d=2,3,2 a(b(d)) without rotation : is this correct logic sort on the basis of length and breadth and height then find lis on the basis of height

[algogeeks] box packing

2010-09-22 Thread rajess
sort boxes according to volume.volume pair consists of(l,b,h). take first box having higher volume in sorted order with attribute (l,b,h) choose next volume box in sorted order.take its pair (l,b,h) do a combination between these pairs comparing this attributes in all possible ways and if their