PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] cont'd: Implementing hashtable
Date: Tuesday, 14 Apr 2020, 12:02:16


    > Message Posted By: Unknown
    >
    > Is it possible/recommended to have hash defined as a struct with three
    > fields: int size, int n, and an array of void*. Each pointer void* is
    > intended to point to an array, but is initially set to NULL when the
    > hashtable is created.

Yes, although there is little advantage to void*.
=====

    > When something is inserted, the an array is then malloc-ed and the
    > relevant void* pointer then points to the malloc-ed array. Does this
    > overview make sense?

Yes.

--Stan-
PREV INDEX NEXT