scramble - Form a word from a scrambled letters in java -
i'm doing game project,in have form words dynamically given set of letters... given set of letters may contain duplicate also.. while forming words can use letter given set of letters number of times(say twice or thrice)... me algorithm form possible meaningful words given set
thank u all
the simple approach create every possible ordering of letters, compare each 1 of them dictionary.
you can refine bit storing dictionary in data structure facilitates quick lookups. (hash table, tree, etc) i've been meaning implement 28-ary tree quick dictionary word access, haven't got around yet.
Comments
Post a Comment