Sleator and Tarjan's competitive analysis was aimed at two problems: list update and paging (19:11).
Model
nitems live in a linked list; three operations:access x,insert x,delete x(20:54).- The pointer starts at the head; accessing the
i-th item costsi(21:37,22:23). insertappends at the end;deleteremoves the node (21:37).- After accessing an item you may move it anywhere closer to the front for free — anywhere you already walked past (
19:49,21:37).
The classic heuristics
| Heuristic | Rule |
|---|---|
| Move-to-front (MTF) | Always move the accessed item to the front of the list (22:56) |
| Transpose | Swap the accessed item with the item immediately before it — a gentler MTF that walks an item forward one slot per access (23:38) |
| Frequency count | Keep items sorted by access frequency so far, most-frequent first (23:38, 24:55) |