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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -