array of linked lists


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: array of linked lists

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    6

    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!

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    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

  1. Linked Lists - hard exercise(help needed)
    By parallel in forum Java
    Replies: 6
    Last Post: 08-13-2013, 06:50 AM
  2. Dynamically allocating a 2d array
    By nnp in forum C++
    Replies: 6
    Last Post: 11-01-2005, 10:05 AM
  3. Problem with linked lists and iterators
    By white94cam in forum C++
    Replies: 2
    Last Post: 03-31-2005, 12:02 AM
  4. Dynamic linked lists !!!
    By Vidula in forum Java
    Replies: 0
    Last Post: 12-01-2000, 05:26 AM
  5. Replies: 1
    Last Post: 10-22-2000, 05: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center