I have already seen the forums and different questions on this.
But i want to ask something different. I have two wordlist of different words and one grid specified by 0 and 1. i will have to select word from wordlist 1 for rows and 2 for columns.
The main problem is i have to find multiple solution within given time constraint. Can someone suggest me some good algorithm for that. I am not getting what kind of algorithmic approach should i take.
Another thing, I have two language options. Either c++ or java which would be better to implement.
thank you
I found a solution that does what you want. Sadly I can't take credit for it :)
Here is an example. You feed it a pattern file, like
pattern1
:You invoke the program on it, like e.g. so:
The output is
Or, run another time:
Of course, with larger patterns or smaller wordlists your mileage may vary (wildly). I was able to do 1000 generations in 26.5 seconds on a Q9550 processor, using
The output confirmed that these were in fact 1000 unique solutions. Not bad, if you ask me. (The timing included the time to calculate the md5sums per solution)