943,552 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3871
  • Java RSS
Nov 11th, 2005
0

creating a Trie

Expand Post »
Hi all,

I would like some ideas as to how I would go about developing a trie to store a very small dictionary (of about 10 words). How would I get the program to get each word and make the relevant nodes and edges? Also dela with compressing it?

Thanks for any help in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nisaa15 is offline Offline
14 posts
since Jun 2005
Nov 13th, 2005
0

Re: creating a Trie

Do you mean a tree?
I'd say use a map or something along those lines. If there's a java equivalent of the c++ multimap, then go that route.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Nov 14th, 2005
0

Re: creating a Trie

Quote originally posted by server_crash ...
Do you mean a tree?
I'd say use a map or something along those lines. If there's a java equivalent of the c++ multimap, then go that route.
There is. Here's a handy little link:

http://java.sun.com/j2se/1.4.2/docs/.../util/Map.html
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
Daishi is offline Offline
80 posts
since Aug 2005
Nov 16th, 2005
0

Re: creating a Trie

The OP wants the tries data structure.
I don't know of any class that supports it.
Reputation Points: 62
Solved Threads: 10
Junior Poster
jim mcnamara is offline Offline
179 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Code help
Next Thread in Java Forum Timeline: how do i make executable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC