Databases semester exam roadmap
Core algorithms
Days 4 to 9: normal forms, indexes and transactions. 4 topics, about 18 hours.
Functional dependencies and normal forms
About 6 h.
- Find attribute closures and candidate keys
- Decide the normal form and decompose to 3NF or BCNF losslessly
Visualisers: Normalisation
Indexing: B trees, B+ trees and hashing
About 5 h.
- Insert keys into a B+ tree, splitting nodes correctly
- Compare static and extendible hashing
Visualisers: B-tree, B+ tree, Hashing & indexing
Transactions and concurrency control
About 5 h.
- Test a schedule for conflict serialisability with a precedence graph
- Run two-phase locking and timestamp ordering
Visualisers: Serialisability, Concurrency control
Recovery
About 2 h.
- Recover from a log with undo and redo, using checkpoints
Visualisers: Log-based recovery