全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Load factor, rehashing?

又称: load factor · rehashing

Definition 16.5 University Computer Science — Year 1 · 第 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.)
在原文中阅读 →