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
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
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
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
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
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