title: get list of anagrams from a dictionary
body: <p>Basically, Anagrams are like permutation of string.E.g <code>stack</code> ,<code>sackt</code> ,<code>stakc</code> all are anagrams of <code>stack</code> (thought above words aren't meaningful). Anyways you could have understood what I basically meant.</p>
  
  <p>Now, I want a list of <code>anagrams</code> given million words or simply say from a dictionary.</p>
  
  <p>My  basic question is <code>Find total number of unique anagrams in a dictionary?</code></p>
  
  <p>Sorting and comparing 
  won't work as it's time complexity is pretty bad.</p>
  
  <p>I thought of using hash table, string as key.</p>
  
  <p>But the problem is what should be the hash function ? It would be helpful if some pseudocode 
  provided. Some other approaches better than mentioned approaches would also be helpful.</p>
  
  <p>Thanks.</p>