PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] Implementing the hashtable
Date: Tuesday, 14 Apr 2020, 12:03:31


    > Message Posted By: Unknown
    >
    > I'm having trouble conceptualizing what the hashtable should be like.
    > Should it be an array of indices, of which each index is the start of a
    > dynamic, ordered array? So it looks something like a 2D array, with
    > different lengths?

The hash table could be an array of structs, each
containing a pointer to an array of struct triples.  Or
it could just be two arrays, one of which has pointers
to struct triples (which can be accessed as a 2D array).

--Stan-
PREV INDEX NEXT