Word List Gen
Posted on 2004-09-21
I am trying to make my own Spell Checker, and I need some code (a fast code) that can generate every possible combination of a string for a certain length.
Characters - abc
length - 3
It would then output every possible combination in to a text document. So in the text doucment it would look something like this.
aaa aab aac aba abb abc aca acb acc
And so on.
I need a fast code. With my old program that I made, it did do it fast, but when you came to do a length of above 3 it became very slow. To do every possible combination with characters of a-z + A-Z + 0-9 it would take for a length of 4 about 35 mins.
I did mange to download a very fast Word List gen but it did not output the strings in the way I wanted it too But it was Very, Very fast it could do characters of a-z + A-Z + 0-9 with a length of 4 in less than 1 min.
Is there any code that you can provide me with so I can make a very fast one?