Bin Packing Algorithms
Bin Packing Algorithms
uk
Wiltshire
Decision Maths
Bin-packing Algorithms
Heuristic Algorithms
Wiltshire
Wiltshire
Box
Height
Clearly you can see that the depth and width of the
Wiltshire
First-fit algorithm
Wiltshire
Box
Box
D
A
F
B
H
C
B
D
FI
C
G
J
H
AI
G
J
Height
Height
3
9
9
7
8
4
7
9
6
9
4
3
4
8
3
6
3
4
15
C(4)
G(3) H(8)
I(6)
B(7)
D(9)
A(3)
E(7)
F(9)
J(4)
15
I(6)
C(4) B(7)
A(3)
J(4)
Wiltshire
Height
15
I(6)
A(3)
Wiltshire
Box
G(3)
J(4)
B(7)
C(4)
particular reason).
D(9) F(9) H(8)
E(7)
bins?
Wiltshire
13m
7m
12m
4m
Van
Truck
Car
Lorry
3m
6m
4m
11m
on to the trip.
Can all the vehicles be taken on the trip?
Box
A
13
B
3
C
7
D
6
E
12
F
4
G
4
H
11
Box
Height
13
3
7
6
12
4
4
11
Box
Height
Wiltshire
Solution
A
13
13
B
3
13
3
A
13
C
7
13
7
3
E
12
D
6
13
7
6
3
H
11
13
12
7
6
3
C
7
E
12
F
4
13
12
7
6
4
3
13
12
7
6
4
4
3
D
6
F
4
G
4
H
11
G
4
B
3
13
12
11
7
6
4
4
3
Wiltshire
Box
Height
13
12
11
First-fit decreasing
G(4)
C(7)
Wiltshire
Height
C(7)
D(6)
D(6) F(4)
F(4)
C D
G H
600 200 450 250 300 250 150 200 100 150
50
100
A(13) E(12)
A(13)
H(11)
H(11) E(12)
B(3)
Lane 1 Lane 2 lane 3
Size (mb)
H G
600 450 300 250 250 200 200 150 150 100 100
K
50
Wiltshire
Solution
Program
Size (mb)
H G
600 450 300 250 250 200 200 150 150 100 100
G
D
I
(250)
J
F
(250) H
A
(600) C
(200)
(450) E
B
(300)
(200)
50
Length
(ft)
Length
(ft)
Number
Wiltshire
pipe a name.
Now you can apply the first-fit decreasing
algorithm.
You can now easily see the full bin combinations.
Pipe
Length
K(2) J(3)
D(4) E(4)
Wiltshire
F(4) I(3)
H(3)
A B C D E F G H
7 7
6 4 4
4 3
3 3
J K L
3
2 2
G(3) L(2)
D(4)