02Chapter 2: Why collisions are unavoidableThis chapter assumes you know array indexing, modulo arithmetic, basic Python classes and tuples, and the difference between average-case and worst-case cost. You don't need any earlier chapter beyond the overview of how a hash table maps a key to an array index.3 min read
03Chapter 3: Load factor: how full is the table?This chapter assumes you know arrays and indexing, basic Python classes, Big-O notation, and modulo arithmetic. It also assumes you have read the previous chapter on why collisions are unavoidable.2 min read
04Chapter 4: Separate chaining: a collection per slotThis chapter assumes you know arrays and indexing, basic Python classes and tuples, modulo arithmetic, and Big-O notation with average versus worst-case cost. You have seen that two keys can hash to the same slot. Separate chaining is the first strategy for handling that.2 min read
05Chapter 5: Open addressing: probing for a free slotThis chapter assumes you know arrays and indexing, basic Python classes and tuples, Big-O notation, and modulo arithmetic. It also assumes you have seen why collisions happen and how load factor is computed.3 min read
06Chapter 6: Linear probingThis chapter assumes you know arrays and indexing, basic Python classes and tuples, modulo arithmetic, and the idea of average versus worst-case cost. It also assumes you have read the previous chapter on open addressing.2 min read
07Chapter 7: Primary clustering and why it hurtsThis chapter assumes you know linear probing from the previous chapter, Python lists and loops, and average versus worst-case Big-O.3 min read
08Chapter 8: Quadratic probingThis chapter assumes you know linear probing, tombstones, and load factor from the earlier chapters. It also assumes you are comfortable with modulo arithmetic and basic Python.2 min read
09Chapter 9: Double hashingThis chapter assumes you know linear probing, primary clustering, and modulo arithmetic from the earlier chapters. Double hashing is an open-addressing strategy that gives each key its own step size, so keys that collide at the start do not follow the same path afterward.3 min read
10Chapter 10: Deleting keys with tombstonesThis chapter assumes you know linear probing from the previous chapter, including how a lookup walks forward from the home slot. It also assumes you can read basic Python classes and tuples.2 min read
11Chapter 11: Resizing and rehashingThis chapter assumes you know arrays and indexing, basic Python classes and tuples, average versus worst-case Big-O, and modulo arithmetic. You should also have read the chapter on load factor.2 min read
12Chapter 12: Expected cost of lookups and insertsThis chapter assumes you know Big-O notation, the difference between average and worst-case cost, and the chaining and linear probing tables from the earlier chapters. Here you will put numbers on how fast each design is, using the load factor α (keys stored divided by slots).2 min read
13Chapter 13: Choosing between chaining and open addressingThis chapter assumes you have read the earlier chapters. You should know how separate chaining and linear probing work, what a tombstone is, and how load factor triggers a resize. Here you compare the two strategies and pick one for a given job.3 min read
14Chapter 14: Robin Hood hashing (extension)This chapter assumes you know linear probing, primary clustering, and tombstones from the earlier chapters. Robin Hood hashing is a small change to linear probing. It keeps the table array and the probe order, and it changes which key gets to stay in a contested slot.2 min read