GATE CS roadmap

Databases

Modelling, normalisation, indexing and transactions. 6 topics, about 29 hours.

  1. ER model to relations

    About 3 h.

    • Turn entities, weak entities and relationships into tables
    • Work out the minimum number of tables

    Visualisers: ER to relational

  2. Relational algebra, SQL and joins

    About 6 h.

    • Predict the output of joins, including outer, semi and anti joins and NULLs
    • Estimate the cost of nested-loop, block and hash joins

    Visualisers: SQL joins, Query processing

  3. Functional dependencies and normal forms

    About 6 h.

    • Find closures, candidate keys and a minimal cover
    • Decide the highest normal form and decompose losslessly

    Visualisers: Normalisation

  4. Indexing: B-trees, B+ trees and hashing

    About 6 h.

    • Insert into and delete from B and B+ trees
    • Compute the order and height of an index from block sizes

    Visualisers: B-tree, B+ tree, Hashing & indexing

  5. Transactions and concurrency control

    About 6 h.

    • Test schedules for conflict and view serialisability
    • Classify schedules as recoverable, cascadeless or strict
    • Run 2PL and timestamp ordering

    Visualisers: Serialisability, Concurrency control

  6. Recovery

    About 2 h.

    • Replay a log with undo and redo after a crash, with checkpoints

    Visualisers: Log-based recovery