An open API service indexing awesome lists of open source software.

https://github.com/wlun001/bin-packing

Bin Packing Problem (Minimise number of used Bins)
https://github.com/wlun001/bin-packing

algorithms-datastructures bin-packing java

Last synced: 7 months ago
JSON representation

Bin Packing Problem (Minimise number of used Bins)

Awesome Lists containing this project

README

          

# bin-packing
Bin Packing Problem (Minimise number of used Bins)

## Problem
Pack parcels into trucks, using fewest trucks. Assume all trucks have the same load limit

### Solution
#### UML diagram
![uml diagram](docs/class-diagram.png)

#### Big-O Notation

| Algorithms | Big-O Notation |
| ------------- | ------------- |
| First Fit | ```O(n)``` |
| First Fit Decreasing | Best case: ```O(n)```, Worst case: ```O(n log n)```|
| Best Fit | O(n2) |
| Best Fit Decreasing | Best and worst case: O(n2) |

#### Truck Utilisation
![utilisation](docs/utilisation.png)

#### Sample Output
![output](docs/output.gif)