yea, i'd go with greedy also.   Fill bin with biggest size s1 as much
as possible (and same for other bins),  then try to squeeze in next
biggest size s2, etc.

On Oct 29, 7:17 am, teja bala <pawanjalsa.t...@gmail.com> wrote:
> Greedy knapsack algorithm will work fine in this case as in each bin
>
> n1s1+n2s2+..nrsr<=C gives the optimal solution...........
>
>
>
>
>
>
>
> On Sat, Oct 29, 2011 at 4:34 AM, SAMMM <somnath.nit...@gmail.com> wrote:
> > Suppose u have n1 items of size s1,
> > n2 items of size s2 and n3 items of size s3. You'd like to pack
> > all of these items into bins each of capacity C, such that the
> > total number of bins used is minimized.
>
> > --
> > 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 options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.

-- 
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 options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to