data structure for large no of words ??
I want to store a large number of words (kind of like a mini dictionary ???)
and want to be able to look up individual words(e.g find dog, cat) and also
look for words that start with certain letters (words that start with do,
The simplest way (for me anyway) so far is to store all of the words in a
big array, but this takes up a lot of space and I guess will have download
I was also thinking of storing all the words in some sort of tree-like structure,
with each letter being a node in the tree (to remove redundant info). However,
having thought of this clever idea, I don't know how I could go about searching
this "tree-like" thing for my desired words .....
Any suggestions about how to store a large no of words in a space efficient
way, but at the same time making it relatively easy to search for the required
Thansk for your help.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL