Passer au contenu

Hachage

Introduit
Fiche de cours
Leçon vidéo pour ce sujet Ouvrir la page vidéo
15:07

Types de données définis par l'utilisateur

Un champ chaîne simple stockera volontiers des nonsens. Demandez un type de véhicule, et quelqu'un tape Bananes — le programme l'accepte sans murmurer. Mais si vous…

Narration en anglais · sous-titres en anglais et en 中文 au choix

Dans cette leçon

Leçon vidéo
Vocabulaire
English Sens
key/kiː/clé
collision-resolution strategyA method for handling keys that produce the same hash address.
hash function/hæʃ ˈfʌŋkʃn/fonction de hachage
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/adresse
deterministic/dɪˌtɜːmɪˈnɪstɪk/deterministic : déterministe
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ə/facteur de charge
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.

Fiche de cours

IGCSE, A-Level & AP