I believe the data structure you want is a Trie:
http://en.wikipedia.org/wiki/Trie

-- 
silky

  http://www.programmingbranch.com/

Reply via email to