Study
CSC-301 route
Unit 4 · Lesson 4 of 4 13 min

Hash Tables and Collision Resolution

A hash function turns a key into an index, so the cost of a lookup is the cost of the collision handling.

What this unit covers

Unit 4: Trees, Heaps and Hashing

  1. 1 Binary Trees and Their TraversalsA traversal is a definition, not a loop. Recursion writes it in three lines and the machine supplies the stack. · 14 min
  2. 2 Binary Search TreesA search tree is an ordered structure disguised as a tree. Its speed is the height, and its height is the order of insertion. · 12 min
  3. 3 Heaps, Priority Queues and Balanced TreesA heap is a tree with one promise instead of many, which is why it is fast and why it is stored in an array. · 12 min
  4. 4 Hash Tables and Collision ResolutionA hash function turns a key into an index, so the cost of a lookup is the cost of the collision handling. · 13 min