Re:Sorting 2 Tons of Lego (2017)
by ant6n on Sunday September 15, 2019 @11:16PM
(#20980821)
Given a large set of unsorted lego pieces, and a list of possible lego sets with associated dollars values:
Do a single pass to identify/scan all the pieces. Then based on that, divide those into sets such that the associated dollar values are maximized and such that the number of sets is minimized.
Then select the 11 most valuable of the sets and use the sorting machine to sort these out, all the remaining legos go in the 12 set. Repeat.
Do a single pass to identify/scan all the pieces. Then based on that, divide those into sets such that the associated dollar values are maximized and such that the number of sets is minimized.
Then select the 11 most valuable of the sets and use the sorting machine to sort these out, all the remaining legos go in the 12 set. Repeat.
Simple ;D