timothy.c.delaney@gmail.com>:
> What if in a pathological collision (e.g. > 1000 collisions), we increased
> the size of a dict by a small but random amount?

It doesn't change anything, you will still get collisions.

That depends right? If the collision is because they all have the same hash(), yes. It might be different if it is because the secondary hashing (or whatever it's called :-) causes collisions.
">

(original) (raw)

On Mon, Jan 16, 2012 at 4:16 PM, Victor Stinner <victor.stinner@haypocalc.com> wrote:

2012/1/17 Tim Delaney <timothy.c.delaney@gmail.com>:

> What if in a pathological collision (e.g. > 1000 collisions), we increased
> the size of a dict by a small but random amount?

It doesn't change anything, you will still get collisions.

That depends right? If the collision is because they all have the same hash(), yes. It might be different if it is because the secondary hashing (or whatever it's called :-) causes collisions.

--
--Guido van Rossum (python.org/\~guido)