Skip to content

garrou/bin-packing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bin-packing

FF, FFD, BF, BFD in C++.

Alt text

Explanations

FF -> First-Fit
FFD -> First-Fit Decreasing
BF -> Best-Fit
BFD -> Best-Fit Decreasing

We consider n objects of "sizes" a1, a2, ... an and boxes (in unlimited number) always of the same "size" A.
It is assumed that for each object i, we have 0 ≤ ai ≤ A.
The problem is to minimize the number of boxes to be used in order to store the n objects.
The problem is to minimize the number of boxes to be used in oder to store the n objects.
There is no known polynomial algorithm to solve this problem.
The bin packing problem is not in class P; in fact, it is an NP-complete problem.

Make

• Compile

make main

• Run

make run

Docker

• Build image

docker build -t <name>

• Run image

docker run -it <name>

Releases

No releases published

Packages

 
 
 

Languages