Skip to main content Accessibility help
×
Hostname: page-component-586b7cd67f-tf8b9 Total loading time: 0 Render date: 2024-11-30T15:44:26.903Z Has data issue: false hasContentIssue false

4 - Bin-Packing

Published online by Cambridge University Press:  07 May 2024

Rahul Vaze
Affiliation:
Tata Institute of Fundamental Research, Mumbai, India
Get access

Summary

Introduction

In this chapter, we consider a very basic packing problem, called bin-packing, where the objective is to pack items with different weights or sizes in boxes or bins of fixed capacity using as few bins as possible. In particular, assuming that the capacity of each bin is 1 and the weight of each item is at most 1, the problem is to divide the set of items into as few partitions (corresponding to individual bins) as possible, such that the sum of the weight of items in each partition is at most 1. The offline problem when the full set of items is available ahead of time is known to be NP-hard.

Applications of the bin-packing problem in both offline and online settings include inventory management where pellets or containers need to be packed with objects of different sizes and weights, subject to a size or weight capacity, job scheduling where each server can process jobs subject to a maximum capacity, and storing large data sets on disks of finite size, and many others.

Bin-packing is one of the most well-studied problems in the area of online algorithms for which multiple classes of algorithms have been studied. In this chapter, we review two such classes: AnyFit algorithms that try to fit an item in a bin using some local rule and (ii) the Harmonic algorithm that creates special classes of bins ahead of time and assigns an item to a bin of a particular class. The philosophy behind these two classes of algorithms is entirely different; however, they result in very similar competitive ratios when the number of items is large.

We show that with a large number of items, the competitive ratio of AnyFit class of algorithms is 1.7, while the competitive ratio of the Harmonic algorithm is 1.691, where both the ratios are tight. We also show that for arbitrarily many number of items, the lower bound on the competitive ratio of any deterministic online algorithm is 5/3.

Problem Formulation

Consider that there is an infinite supply of bins each with a capacity 1. Items with weight wi arrive sequentially that have to be placed in one of the bins (subject to the sum-weight of the items placed in any bin being less than its capacity) irrevocably with an objective of minimizing the number of bins used.

Type
Chapter
Information
Online Algorithms , pp. 49 - 66
Publisher: Cambridge University Press
Print publication year: 2023

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Bin-Packing
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.005
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Bin-Packing
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.005
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Bin-Packing
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.005
Available formats
×