Databases

  1. Hashing & indexing: Chaining, linear, quadratic and double hashing, plus extendible hashing.
  2. ER to relational: Draw an ER diagram in Chen notation, then map it to tables one rule at a time, with every key shown.
  3. SQL joins: INNER, OUTER, SEMI and ANTI joins row by row, plus nested-loop, block nested-loop, sort-merge and hash join with I/O costs.
  4. Query processing: SQL to relational algebra trees, rewritten step by step: push selections down, reorder joins, estimate sizes.
  5. Normalisation: Closures, candidate keys, 1NF to BCNF, minimal cover and decompositions.
  6. B-tree: Keys in every node: median splits, predecessor and successor swaps, borrows and merges (CLRS t).
  7. B+ tree: Insert, delete and search with every split, borrow and merge animated.
  8. Serialisability: Precedence graphs, conflict and view serialisability, recoverable and strict schedules.
  9. Concurrency control: Two-phase locking with a lock table and deadlocks, timestamp ordering and validation, step by step.
  10. Log-based recovery: Crash anywhere in the log, then watch redo repeat history and undo roll back the losers.