大象传媒

Example

Question

Use the first-fit algorithm to sort these items into boxes. Each box can take \(10kg\).

ItemABCDEFGHIJ
Weight (kg)\(7\)\(8\)\(4\)\(4\)\(2\)\(2\)\(3\)\(5\)\(8\)\(3\)
Item
A
B
C
D
E
F
G
H
I
J
Weight (kg)
\(7\)
\(8\)
\(4\)
\(4\)
\(2\)
\(2\)
\(3\)
\(5\)
\(8\)
\(3\)

Related links