private List <T> FillGroup(ChunkSizedObjects <T> items, List <T> orderedItems, List <T> group) { var curSum = 0; foreach (var item in orderedItems) { if (curSum + items.KeySelector(item) > items.GetGoal(GroupCount)) { continue; } group.Add(item); curSum += items.KeySelector(item); } return(group); }
public BigToSmallAlgorithm(ChunkSizedObjects <T> objects) : base(objects) { }