in reply to Speeding permutation counting
I don't think any answer to the questions would invalidate my idea but it might change the implementation a bit. Since I do not have time to try it myself, I am laying it out here.
I believe you should be able to mathematically determine the counts without doing the comparisons. I believe all you need to do is count how many 0s and 1s there are for each position. To further speed up the process, I might even consider doing the counting using Inline::C.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Speeding permutation counting
by BrowserUk (Patriarch) on Jul 19, 2007 at 20:20 UTC | |
by Limbic~Region (Chancellor) on Jul 19, 2007 at 20:46 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2007 at 21:15 UTC | |
by Limbic~Region (Chancellor) on Jul 20, 2007 at 00:08 UTC | |
by BrowserUk (Patriarch) on Jul 20, 2007 at 00:19 UTC | |
|