Jump to content

Can't understand Book Text: FirstFit


zak100

Recommended Posts

Hi,

I am having problem in understanding the following text of the book:

The input consists of 6m items of size 1/7+ Absolon, followed by 6m items of size 1/3+ Absolon , followed by 6m items of size  1/2 + Absolon. One
simple packing places one item of each size in a bin and requires 6m bins.

If m = 1 then its possible to have 6 bins.

All1/7 elements would go into 1 bin.

All 6*1/3 items would go into 2 bins

All 6 *1/2 items would go into 3 bins.

 

Total = 6 bins

It further says:

Quote

First fit requires 10m bins.

Why First Fit would require 10 bins. I think First Fit would also require 6 bins.

 

Somebody please guide me why First Fit would need 10 bins?

Zulfi.

Edited by zak100
Link to comment
Share on other sites

On 4/24/2020 at 1:07 AM, zak100 said:

All 6*1/3 items would go into 2 bins

But items are of size: 

On 4/24/2020 at 1:07 AM, zak100 said:

6m items of size 1/3+ Absolon

They are larger than 1/3. So 6 of them does not fit in two bins. You need 3.

Same for the 1/2+a size items, they need 6 bins 

1+4+6=10

 

Edited by Ghideon
Link to comment
Share on other sites

1 hour ago, zak100 said:

What you are saying is right but then we have 11m bins required not 10 m as the book says.

1 + 4 + 6 = 10

1 + 3 + 6 = 10

1 hour ago, zak100 said:

And how the "simple packing" i.e. optimum requires 6m bins?

Because:

On 4/24/2020 at 1:07 AM, zak100 said:

One simple packing places one item of each size in a bin and requires 6m bins.

Untitled.png.1ee007abf38e6ba24c2aad1577c0f2a0.png

Edited by Strange
Stupid copy
Link to comment
Share on other sites

Hi my friends Ghideon and Strange,

Thanks a lot.

Your efforts helped me to understand the problem specially Strange's figure and Ghideon's calculation.

I did my calculation:

a =0.00795

==

1/7+0.00795=0.15075*6 = 0.9045 (1 bin)

½ +0.00795=0.50795= (6 bins)

1/3+.00795 = 0.3333+.00795= 0.34125 (2 can fit in one  bin) and 6 will require 3 bin. Therefore total is 10 bins.

'a' is not perfect but its almost perfect.

Its now clear to me.

 

God bless you guys.

 

Zulfi.

 

image.thumb.png.a0ffcc15ba9bbd2235c0e270f281c03b.png

Edited by zak100
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.