02Chapter 2: How a dynamic array growsThis chapter assumes you know Big-O notation, how fixed-size arrays are allocated and indexed, and how to read short Python programs. It explains the mechanism that the later amortised proofs analyse.3 min read
03Chapter 3: Aggregate method: totalling the cost of n appendsThis chapter assumes you know Big-O notation, how fixed-size arrays are allocated, and how to read short Python programs. It also assumes you have seen the doubling dynamic array from the previous chapter.2 min read
04Chapter 4: Accounting method: charging each append a fixed priceThis chapter assumes you know Big-O notation, how a doubling dynamic array works, and the aggregate method from the previous chapter. The aggregate method totals the cost of all n appends and then divides. The accounting method works differently. It sets a fixed price per operation up front and show3 min read
05Chapter 5: Potential method: a stored-energy functionThis chapter assumes you know the aggregate and accounting methods from the earlier chapters, and that you can read short Python programs. The potential method proves the same bound as the accounting method. It keeps the stored credit in one function of the whole data structure instead of attaching 3 min read
06Chapter 6: Why growth must be geometricThis chapter assumes you know Big-O notation, fixed-size arrays, and the doubling dynamic array from the earlier chapters. It also assumes you can read short Python programs. The question here is why the new capacity must be a multiple of the old one, and why adding a fixed number of slots fails.3 min read
07Chapter 7: Shrinking without thrashingThis chapter assumes you know the aggregate and accounting arguments for a doubling dynamic array. It also assumes you can read short Python programs.3 min read
08Chapter 8: Chained hash tables and the load factorThis chapter assumes you know Big-O notation, how fixed-size arrays are indexed, what a hash function does, and how to read short Python programs. It sets up the cost model that the later chapter on resizing relies on.3 min read
09Chapter 9: Resizing a hash table: amortised O(1) insertionThis chapter assumes you know Big-O notation, how a chained hash table stores entries in buckets, and how the aggregate method totals the cost of a sequence of operations. It applies the same argument to hash table insertion.3 min read
10Chapter 10: Expected versus amortised: two different averagesThis chapter assumes you know the aggregate method for a doubling array, how a chained hash table with a load factor works, and basic Python. Both "expected" and "amortised" cost are averages, but they average over different things. Mixing them up leads to wrong claims about hash tables.3 min read
11Chapter 11: Open addressing, tombstones and rebuildsThis chapter assumes you know big-O notation, how a chained hash table works, and the load factor from the earlier chapters. Here you will see how amortised analysis carries over to open addressing, and why deletions force a second kind of rebuild.3 min read
12Chapter 12: Incremental rehashing: trading amortised for worst-case boundsThis chapter assumes you know how a chained hash table works, what the load factor is, and why doubling the bucket array gives O(1) amortised insertion. Earlier chapters showed that bound. Here we look at what it hides and how to remove the hidden cost.2 min read
13Chapter 13: When an amortised bound is not enoughThis chapter assumes you know the aggregate, accounting and potential methods. It also assumes you know how a doubling dynamic array and a resizing chained hash table work, and the difference between expected and amortised cost.2 min read