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 builds the data structure that the rest of the tutorial analyses. Here you learn what a dynamic array stores, how an append works, when it resizes, and what one ap6 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 indexed, and how to read short Python programs. It builds on the previous chapter's description of a dynamic array, which grows by allocating a bigger array and copying the old elements into it.7 min read
04Chapter 4: Accounting method: charging each append a fixed priceThis chapter assumes you know Big-O notation and the doubling dynamic array from earlier in the tutorial. It also assumes you can read short Python programs. You should be able to state the aggregate-method result: n appends cost less than 3n units in total.7 min read
05Chapter 5: Potential method: a stored-energy functionThe potential method is the third way to prove an amortised bound, after the aggregate method and the accounting method. It does the same job as the accounting method, but it stores the savings as one number that depends only on the data structure's current state. This chapter assumes you have read 7 min read
06Chapter 6: Why growth must be geometricThis chapter assumes you know Big-O notation, how a dynamic array doubles its capacity when full, and the aggregate method from the previous chapters. You should also be able to read short Python programs.7 min read
07Chapter 7: Shrinking without thrashingThis chapter assumes you know the doubling dynamic array and its aggregate bound from the earlier chapters. You should also be comfortable with the accounting and potential methods. Growing an array is the easy half of resizing. Shrinking it looks like the mirror image, but the obvious mirror image 7 min read
08Chapter 8: Chained hash tables and the load factorThis chapter assumes you know Big-O notation, how fixed-size arrays are allocated and indexed, and what a hash function does. It also assumes you can read short Python programs. Here we build a chained hash table, work out what a lookup costs, and see why one number, the load factor, controls that c7 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 also assumes you can read short Python programs.6 min read
10Chapter 10: Expected versus amortised: two different averagesThis chapter assumes you know Big-O notation, how a chained hash table stores keys in buckets, and the doubling resize from the earlier chapters. It also assumes you can read short Python programs.6 min read
12Chapter 12: Incremental rehashing: trading amortised for worst-case boundsThis chapter assumes you know the chained hash table and resize-on-load-factor design from the previous chapters. It also assumes you can read the amortised argument for doubling: total resize work over n inserts is O(n), so each insert costs O(1) amortised. You should be comfortable reading short P6 min read
13Chapter 13: When an amortised bound is not enoughThis chapter assumes you can read short Python programs and know the earlier chapters' results. A doubling dynamic array has O(1) amortised append. A chained hash table that rehashes at a fixed load factor has O(1) amortised, expected-case insertion. Here you will see what those guarantees leave out7 min read