1 / 11

Efficient Bin Packing Using First-Fit Decreasing Algorithm

This text explores the application of the First-Fit Decreasing algorithm in solving the bin packing problem. In this algorithm, we first sort the blocks into descending order based on their sizes. Starting from the largest block, we then use the First-Fit approach to allocate the blocks into bins. The process involves iterating through the blocks and filling the bins until all blocks are accommodated, resulting in the effective use of space, ultimately packing the items into five bins.

devona
Télécharger la présentation

Efficient Bin Packing Using First-Fit Decreasing Algorithm

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bin PackingFirst fit decreasing algorithm A B C D E F With the first fit decreasing algorithm we sort the blocks into descending order first. 6 5 4 3 3 3 2 2 1

  2. Bin PackingFirst fit decreasing algorithm A B C D E F Now we use the first fit algorithm 6 5 4 3 3 3 2 2 1

  3. Bin PackingFirst fit decreasing algorithm 6 A B C D E F Now we use the first fit algorithm 5 4 3 3 3 2 2 1

  4. 5 Bin PackingFirst fit decreasing algorithm 6 5 A B C D E F Now we use the first fit algorithm 4 3 3 3 2 2 1

  5. 4 Bin PackingFirst fit decreasing algorithm 4 6 5 4 A B C D E F Now we use the first fit algorithm 3 3 3 2 2 1

  6. Bin PackingFirst fit decreasing algorithm 3 3 3 6 5 4 3 A B C D E F Now we use the first fit algorithm 3 3 2 2 1

  7. Bin PackingFirst fit decreasing algorithm 3 3 3 6 3 5 4 3 A B C D E F Now we use the first fit algorithm 3 2 2 1

  8. Bin PackingFirst fit decreasing algorithm 3 3 3 3 6 3 5 4 3 3 A B C D E F Now we use the first fit algorithm 2 2 1

  9. Bin PackingFirst fit decreasing algorithm 2 2 6 2 3 5 4 3 3 A B C D E F Now we use the first fit algorithm 2 1

  10. Bin PackingFirst fit decreasing algorithm 2 2 2 2 6 2 3 5 2 4 3 3 A B C D E F Now we use the first fit algorithm 1

  11. Bin PackingFirst fit decreasing algorithm 1 6 1 2 3 5 2 4 3 3 A B C D E F Now we use the first fit algorithm We have packed them into 5 bins.

More Related