Install our extension to search inside any video instantly.

COMP2521 26T2 Week 8 Lecture 1

Added:
155 views0likes1:32:29COMP2521UNSWOriginal Release: 2026-07-21

A hash table is a data structure that maps keys to values using a hash function to compute array indices, enabling O(1) average time complexity for insert, lookup, and delete operations. When collisions occur (different keys mapping to the same index), three main resolution techniques exist: separate chaining (using linked lists at each slot), linear probing (finding the next empty slot sequentially), and double hashing (using two hash functions to determine probe steps). The load factor (number of items divided by table size) determines performance, with resizing recommended when it exceeds a threshold.