in reply to Re^2: Fastest way to "pick without replacement"
in thread Fastest way to "pick without replacement"
Every set bit would represent a used number. °
Of course this would mean that the overall algorithm needs to be adjusted ...
Anyway in my experience you are doing micro-optimization here, the exponential growth of the search space makes better bound conditions to cut sub-trees far more important than tuning Perl.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) the strings can't get that big, a result set for 32 input numbers would already be beyond limits.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fastest way to "pick without replacement"
by haukex (Archbishop) on Nov 22, 2020 at 13:08 UTC | |
by LanX (Saint) on Nov 22, 2020 at 21:54 UTC |