ข้ามไปยังเนื้อหา

การแฮช (Hashing)

แนะนำใหม่
เอกสารประกอบการเรียน
บทเรียนวิดีโอสำหรับหัวข้อนี้ เปิดหน้าวิดีโอ
15:07

ประเภทข้อมูลที่กำหนดโดยผู้ใช้

ฟิลด์ข้อความธรรมดาจะเก็บข้อมูลไร้สาระได้อย่างสบายใจ ขอชนิดยานพาหนะมา คนหนึ่งพิมพ์ "กล้วย" — โปรแกรมรับไว้โดยไม่บ่น แต่หากคุณ…

บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้

ในบทเรียนนี้

บทเรียนวิดีโอ
คำศัพท์
English ความหมาย
key/kiː/คีย์
collision-resolution strategyA method for handling keys that produce the same hash address.
hash function/hæʃ ˈfʌŋkʃn/ฟังก์ชันแฮช
hashing algorithmsMethods that calculate a storage address from a record's key.
slot/slɒt/A position in a hash table where a record can be stored.
search/sɜːtʃ/To look through data for an item that matches a given value.
insert/ˈɪnsɜːt/To add a new item to a data structure, file or table.
address/əˈdres/ที่อยู่
deterministic/dɪˌtɜːmɪˈnɪstɪk/แบบกำหนดได้
modulo/məˈdjʊləʊ/A method that uses the remainder after division to find an address.
foldingA method that splits a key into parts and adds them before using modulo.
string hashA method that adds character codes and uses modulo to find an address.
character codesNumbers used to represent characters in a computer.
collision/kəˈlɪʒn/การชนกัน
hash tablesData structures that use keys to calculate where records are stored.
Linear probing/ˈlɪnɪə ˈprəʊbɪŋ/A method that checks slots one after another until it finds a free slot.
cluster/ˈklʌstə/To form a group of records in slots next to each other.
Chaining/ˈtʃeɪnɪŋ/A method that keeps records with the same hash address in a linked list.
linked list/lɪŋkt lɪst/A sequence of nodes connected by references or pointers; the nodes need not occupy adjacent memory locations.
clustering/ˈklʌstərɪŋ/The forming of groups of records in slots next to each other.
pointers/ˈpɔɪntəz/A value that identifies a memory location or refers to another stored object.
RehashingA method that uses a second hash function to find another slot.
load factor/ləʊd ˈfæktə/ปัจจัยการโหลด
probe sequencesThe slots checked, in order, when searching for or inserting a record.
linear search/ˈlɪnɪə sɜːtʃ/Checking items in sequence until the required item is found or the list ends.

เอกสารประกอบการเรียน

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP