Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
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 Tables: ค้นหาเร็ว

  • Hash table เก็บ items เพื่อให้คุณสามารถค้นหาพวกมันได้ เร็วมาก — มักจะในหนึ่งขั้นตอน
  • มันเป็น list ของ slots. Hash function เปลี่ยน key เป็นเลข slot
  • แทนที่จะค้นหาทุก item คุณกระโดดตรงไปที่ slot ที่ key อยู่ในนั้นเลย

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP