Skip to content

Hash tables · ⁨哈希表⁩

English

Hash tables: fast lookup

  • A hash table stores items so you can find them very fast — usually in one step.
  • It is a list of slots. A hash function turns a key into a slot number.
  • Instead of searching every item, you jump straight to the slot the key belongs in.
中文

哈希表:快速查找

  • 哈希表(hash table)存储数据的方式,让你能非常快地找到它 —— 通常只需一步。
  • 它是一个由槽位(slot)组成的列表。一个哈希函数(hash function)把键转换成槽位编号。
  • 你不必搜遍每个元素,而是直接跳到这个键应该在的槽位。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩