-
array of linked lists
Hey everyone, im doing an project for uni, and i have to make a dictionary, which is an array of linked list, where each element of the array is a linked list which stores all the words starting with a certain letter of the alphabet.
the words for the dictionary are ment to be read in from a dictionary and then sorted in the array of linked lists. im still new at programming and cant understand how to make an array with each element consisting of a linked list. any help would be great! thx!
-
The elements held in the array are linked lists - the objects contained in an array can be a list - a Collection can hold Collections - this is an implementation similar to a multi-dimension array. Array elements 0-25 hold either a null node or a list of nodes holding words starting with the corresponding letter. If there are more words added, they link off the end of the particular list growing from the particular element node.
Similar Threads
-
By parallel in forum Java
Replies: 5
Last Post: 02-04-2006, 11:14 AM
-
Replies: 6
Last Post: 11-01-2005, 09:05 AM
-
By white94cam in forum C++
Replies: 2
Last Post: 03-30-2005, 11:02 PM
-
Replies: 0
Last Post: 12-01-2000, 04:26 AM
-
Replies: 1
Last Post: 10-22-2000, 04:29 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks