Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Load factor, rehashing » ?

Aussi appelé : load factor · rehashing

Definition 16.5 University Computer Science — Year 1 · Chapitre 16 — Hash Tables

The load factor of a table holding nn keys in mm buckets is α=n/m\alpha = n/m. Rehashing moves every entry to a new array of a different size, recomputing its position.

Keys, a hash function and seven buckets with chaining: dog and saw land in the same bucket, which then holds a list of two entries. Empty buckets hold null pointers. (Illustrative positions.)
Keys, a hash function and seven buckets with chaining: dog and saw land in the same bucket, which then holds a list of two entries. Empty buckets hold null pointers. (Illustrative positions.)
Lire dans le chapitre →