Increasing array size

From: Ioannis Hadjichambis (hadjici2_at_cs.man.ac.uk)
Date: 11/30/04


Date: Tue, 30 Nov 2004 10:50:05 +0000

I am trying to implement a hash-table and I would like to rehash it when
  it starts to fill up. I am implementing the hash-table with an array
of linked lists. Now for me to increase the size of the hash-table I
must create a new array twice the size of the one before but the array
only accepts an imediate number eg array[1000] and will not accept a
variable eg array[count]. Does anyone know how to solve this problem?
thanks...



Relevant Pages

  • Re: Increasing array size
    ... > I am trying to implement a hash-table and I would like to rehash it when ... I am implementing the hash-table with an array ... Try allocating memory dynamically using mallocinstead of declaring a ... the allocated dataspace or move it to a place where sufficient memory can be ...
    (comp.lang.c)
  • Re: Increasing array size
    ... On 2004-11-30, Ioannis Hadjichambis wrote: ... > I am trying to implement a hash-table and I would like to rehash it when ... I am implementing the hash-table with an array ... University of Ulm, Germany ...
    (comp.lang.c)
  • Re: Creating an array
    ... John, you are awesome. ... another array twice, thereby making the array twice as ... a loop will do it to. ...
    (comp.soft-sys.matlab)
  • Re: Creating an array
    ... trying to create an array that puts in each element of ... another array twice, thereby making the array twice as ... I know there must be a simple loop or something that I could do. ...
    (comp.soft-sys.matlab)
  • Creating an array
    ... I am not a programmer and really need help figuring this out. ... trying to create an array that puts in each element of ... another array twice, thereby making the array twice as long. ...
    (comp.soft-sys.matlab)