GI.Joe
December 13th, 2009, 08:56 PM
Hello everyone. I've been trying to find a way to solve this particular problem. I need to create a program where a word is entered by user and then the application will generate all the possible words from the letters of the word keyed in by the user. The words that can be possibly generated will be looked up from the following text file: http://java.sun.com/docs/books/tutorial/collections/interfaces/examples/dictionary.txt
So if I type in "team", the application should return the words "meat, mat, at, eat, tame, meat, mate,....etc."
I've looked at many examples of anagram solvers, but they only typically generate words of the same length of characters from the keyed in word: using "team" again I would get "team, tame, meat, mate" but not the shorter words, which I want.
If anyone could provide me with an algorithm of point me in the right direction, I would greatly appreciate it.
So if I type in "team", the application should return the words "meat, mat, at, eat, tame, meat, mate,....etc."
I've looked at many examples of anagram solvers, but they only typically generate words of the same length of characters from the keyed in word: using "team" again I would get "team, tame, meat, mate" but not the shorter words, which I want.
If anyone could provide me with an algorithm of point me in the right direction, I would greatly appreciate it.