in reply to Re: Generating combinatorial strings
in thread Generating combinatorial strings
I can indeed use these answers in *most* cases, however, all answers given to that question seem to assume that the maximum index is the same in all cases. I do not have the luxury of this assumption.
Considering a simple case of three bonds. "a" and "c" may be rotated 3 times, "b" only twice. i.e.:
a -> 3 b -> 2 c -> 3 which yields the strings 111 112 113 121 122 123 211 212 213 221 222 223 311 312 313 321 322 323
That is to say, "3" is not a legal value in the second column. Or phrased another way, I need to do the same thing as anon, but set a (possibly different) limit on each digit making up the string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Generating combinatorial strings
by BrowserUk (Patriarch) on Jan 25, 2010 at 08:57 UTC | |
|
Re^3: Generating combinatorial strings
by Ratazong (Monsignor) on Jan 25, 2010 at 08:58 UTC | |
|
Re^3: Generating combinatorial strings
by Xiong (Hermit) on Jan 25, 2010 at 22:25 UTC |