The function that returns the hash can return the same index for different id values:
hash(id) = id%ARRAY_SIZE
Is there a way to have the hash function being bijective. I thought of:
hash(id) = id
But I do not have contiguous id values. Does someone have a better solution ?