in reply to Re^4: Challenge: 8 Letters, Most Words
in thread Challenge: 8 Letters, Most Words
In other words, choose all combinations of any 8 chars out of the following string: "aaaabbbcccddddeeeeffffgggghhhiiijjkkkllllmmmnnnnoooopppqrrrrssssstttuuuuvvwwwxxyyyzzzz" and run your dictionary against each of these and your search is exhaustive.a => 4, b => 3, c => 3, d => 4, e => 4, f => 4, g => 4, h => 3, i => 3, j => 2, k => 3, l => 4, m => 3, n => 4, o => 4, p => 3, q => 1, r => 4, s => 5, t => 3, u => 4, v => 2, w => 3, x => 2, y => 3, z => 4,
Of course that is still about 2.14 E15 combinations to check, but many of these will be the same. So, perhaps someone with more mathematical skills than I can write an efficient generator for these combinations that does not have to go through them all to weed out the duplicates.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Challenge: 8 Letters, Most Words
by LanX (Saint) on Oct 05, 2013 at 13:19 UTC | |
by Limbic~Region (Chancellor) on Oct 07, 2013 at 17:52 UTC | |
by LanX (Saint) on Oct 07, 2013 at 18:08 UTC | |
by Limbic~Region (Chancellor) on Oct 07, 2013 at 18:13 UTC | |
by LanX (Saint) on Oct 07, 2013 at 18:25 UTC | |
by Limbic~Region (Chancellor) on Oct 05, 2013 at 21:08 UTC | |
by LanX (Saint) on Oct 05, 2013 at 21:28 UTC | |
by Limbic~Region (Chancellor) on Oct 05, 2013 at 22:07 UTC | |
by LanX (Saint) on Oct 06, 2013 at 12:26 UTC | |
|
Re^6: Challenge: 8 Letters, Most Words
by Limbic~Region (Chancellor) on Oct 05, 2013 at 12:57 UTC | |
by CountZero (Bishop) on Oct 05, 2013 at 13:59 UTC |