Abstract Data Types
Packing data together with the operations on it and hiding the inside: from the concepts through to writing generic code in C.
- adt
- c
- data structures
Notes on backend architecture, deployment and the decisions behind the systems I build.
Packing data together with the operations on it and hiding the inside: from the concepts through to writing generic code in C.
How to predict what an algorithm will cost before running it: counting loops, finding the dominant term, and the seven efficiency classes.
Implementing a linear list with pointers: inserting, deleting, searching and traversing nodes, then the circular, doubly and multi-linked variants.
The linear list restricted to a single end: LIFO. Eight operations, two implementations, and the four things stacks are actually for — reversing, parsing, postponement and backtracking.
The linear list open at both ends: FIFO. Four operations, the two special cases that break queue code, the circular-array trick, and what queuing theory does with all of it.