Skip to the content.

Hash Tables

Terminology

Hash

Buckets

Collisions

Hashing is implemented in two steps:

img

hash = hashfunc(key)
index = hash % array_size

What are Hash Tables

Internal Methods

Add()

Find()

Contains()

GetHash()

Resources