In fact there is indeed a packing needing only two bins: Bin 1: 8, 8, 4 and Bin 2: 10, 7, 3. In this notation the item of weight 8 is at the bottom of Bin 1, next comes the item of weight 8, and the item of size 4 occupies the space at the top of the bin. Note that this solution is not unique because the items within the bin can be permuted.
algorithms, such as Next Fit, First Fit or Best are actually used. It is also conceivable that this approach is of interest for offline bin packing. The best practical algorithm for offline bin packing is Best-fit-decreasing (BFD), in which the Best fit algorithm is applied to the items,