You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discovered by Devdatta, the problem is in PigeonHoleDistributor, line: if
(is.contains(i)) continue firstHoleAllocation;
So, for bound 6, lowers [1,1,1] uppers[4,4,4], it will first generate
permutations
[1,4,1], [1,1,4], [1,2,3], [1,3,2] and then skip [2,2,2] because it thinks that
2 is
already taken care of.
The fix would be to simply remove the broken 'optimization' - the perf impact
on the
tests is so severe that tests stop working. This bugs must to be fixed with or
after
issue#3.
Original issue reported on code.google.com by
[email protected]
on 24 Jan 2010 at 2:11Attachments:
The text was updated successfully, but these errors were encountered: