in reply to Re^3: Challenge: 8 Letters, Most Words
in thread Challenge: 8 Letters, Most Words
CountZero,
I am going to write a brute force solution this weekend but your math isn't quite right. First, you don't need all 26^8th since order doesn't matter. The upper bound is less than 5.2 million. We can reduce it further if we consider the maximum number of times a given letter can repeat. We do not have to consider a worst-case scenario dictionary so I think I can get that 5.2 million down to around 3 million. We still need to compare each of those 3 million against tens of thousands of words so I will be using C to do it but I think run time will be much less than 24 hours.
I am going to write a brute force solution this weekend but your math isn't quite right. First, you don't need all 26^8th since order doesn't matter. The upper bound is less than 5.2 million. We can reduce it further if we consider the maximum number of times a given letter can repeat. We do not have to consider a worst-case scenario dictionary so I think I can get that 5.2 million down to around 3 million. We still need to compare each of those 3 million against tens of thousands of words so I will be using C to do it but I think run time will be much less than 24 hours.
Update: My math was off somewhere. The upper bound was 13_884_156 and I was only able to reduce it down to 12_461_993. Since my word list contains 40,933 words (filtered down from 81_536), that means I am up to 510_106_759_469 checks. In order to finish in under 24 hours, I will need to be able to do 5.9 million checks per second. I hope my C skills are up for the challenge (stay tuned).
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Challenge: 8 Letters, Most Words
by CountZero (Bishop) on Oct 05, 2013 at 08:27 UTC | |
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 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 Limbic~Region (Chancellor) on Oct 05, 2013 at 12:57 UTC | |
by CountZero (Bishop) on Oct 05, 2013 at 13:59 UTC |
In Section
Seekers of Perl Wisdom