Word Anagram Hashing Algorithm?
Posted
by Ahmed Said
on Stack Overflow
See other posts from Stack Overflow
or by Ahmed Said
Published on 2008-12-28T09:11:06Z
Indexed on
2010/03/19
23:31 UTC
Read the original article
Hit count: 564
Given set of words, we need to find the anagram words and display each category alone using the best algorithm
input:
man car kile arc none like
output:
man
car arc
kile like
none
the best solution I am developing now is based on a hashtable, but I am thinking about equation to convert anagram word into integer value
exmaple: man => 'm'+'a'+'n' but this will not give unique values
any suggestions?
© Stack Overflow or respective owner