Lecture 5 - Hash Table and BST
Lecture 5 - Hash Table and BST
DATA STRUCTURES
LECTURE 5 – HASH
Shyryn Tutkyshbayeva
TABLE AND BST
CONTE
NT
1. Hashing
2. Hash Table
3. Binary Search Tree
4. BST: Inorder
Traversal
HAS
HING
Hashing means using some function or algorithm to map object
data to some representative integer value
This so-called hash code (or simply hash) can then be used
as a way to narrow down our search when looking for the
item in the set
Ordered iteration
🢝 Traverse left subtree
🢝 Enqueue key
🢝 Traverse right subtree
LITERATU
RE
Algorithms, 4th Edition, by Robert Sedgewick and Kevin Wayne,
Addison-Wesley
🢝 Chapters 3.2, 3.4