Recently I came across an interesting Boogle solving algorithm problem. While I am familiar with the methods of solving it, I would now like to make a good letter generator for a Boogle board and am looking for an efficient algorithm to do so.
First two steps are straight-forward:
1) Boogle board is 5x5, so I will have an array of 25 chars. Randomly generate an array of 25 chars.
2) Shuffle the array obtained in the step 1
What next? I need to optimize the obtained array to be able to get as many meaningful words as possible. One thing that comes to mind is discarding all combinations of three same letters in a row.
Example: [b b b a c c]
is not quite good. Or should I just limit every letter to appear max twice?
Also, when generating numbers, the letters would have to be weighted. Example, we don't a lot of X and Ys, but vowels can appear many times.
Anything else?
Any guidelines are welcome.