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
You may be able to use something called the Dancing Links or DLX algorithm. This is an extremely efficient algorithm for solving exact cover problems.
There are several programs out there that use this to solve Sudoku puzzles.
I honestly don't know enough about exact cover problems to say that this will definitely work for your needs but it's worth taking a look.