01Chapter 1: Disk storage and why block accesses are the cost measureYou should know arrays, linked lists, binary search, balanced search trees, logarithms, and the basic idea of a database record with a key field. You should also know that secondary storage, such as a disk or SSD, is read in fixed-size blocks.2 min read
02Chapter 2: Records, blocking factor and number of blocksAssume you know basic database records, integer arithmetic, and that a disk reads data in fixed-size blocks. This chapter explains how to calculate how many records fit in a block and how many block accesses a file needs.2 min read
03Chapter 3: File organisation: the options and what they trade offThis chapter assumes that you understand records, disk blocks, blocking factor, binary search, and basic database keys. The main measure is block access: reading or writing one fixed-size block between storage and memory. A method that needs fewer block accesses is usually faster than one that s2 min read
04Chapter 4: Heap files: cheap insertion, linear searchAssume you know basic records, disk blocks, and arrays. You should also know how to calculate a ceiling and understand that a disk reads a whole block rather than one record at a time.2 min read
05Chapter 5: Sorted files: binary search and costly updatesAssume you know records, disk blocks, blocking factor, binary search, and logarithms. This chapter treats a file whose records are stored in ascending order of a search field, such as student_id.2 min read
06Chapter 6: Hashed files: equality lookups and their limitsAssume that you know records, disk blocks, blocking factor, equality search, and the basic idea of an index. You should also be comfortable with modulo arithmetic and expected versus worst-case cost.2 min read
07Chapter 7: Index basics: dense versus sparseAssume you know records, disk blocks, blocking factor, sorted files, and binary search. You should also be comfortable with floor and ceiling arithmetic.2 min read
08Chapter 8: Primary and clustering indexesAssume you know records, disk blocks, blocking factor, sorted files, and ceiling arithmetic. This chapter uses the usual database model in which a file is ordered on one field and an index stores a search value with a pointer to a block.2 min read
09Chapter 9: Secondary indexes on key and non-key fieldsAssume you know records, disk blocks, blocking factor, sorted and heap files, and the difference between a primary and a clustering index. This chapter focuses on an index built on a field that is not the field used to order the data file.3 min read
10Chapter 10: Multilevel indexes and why they lead to treesThis chapter assumes you know records, disk blocks, blocking factors, sparse and dense indexes, logarithms, and basic balanced search trees. The focus is how several index levels reduce block accesses and how this structure becomes a B-tree or B+ tree.2 min read
11Chapter 11: B-tree structure, order and balance rulesAssume you know arrays, linked lists, binary search, balanced search trees, logarithms, and disk blocks. This chapter uses the convention that the order of a B-tree is the maximum number of child pointers in an internal node.2 min read
12Chapter 12: B-tree search, insertion with splits, and deletionPrerequisites: you should know balanced search trees, binary search, logarithms, and why database systems read disk blocks rather than individual records. This chapter uses order \(m\) to mean that a node has at most \(m\) children and \(m-1\) keys. Some books use “order” differently, so always 3 min read
13Chapter 13: B+ tree structure: internal nodes, linked leavesA B+ tree is a balanced search tree designed for storage in disk blocks. Assume you already know arrays, linked lists, binary search, balanced search trees, logarithms, and the idea that a disk reads a whole block at a time.2 min read
14Chapter 14: Computing node order and tree height from block sizeAssume you know fixed-size disk blocks, logarithms, ceiling arithmetic, and the basic structure of balanced search trees. You should also know that a database usually counts block accesses, not individual comparisons. Reading one block brings many keys into memory.2 min read
15Chapter 15: B+ tree search, range queries, insertion and deletionAssume that you know balanced search trees, binary search, logarithms, and that disk I/O happens one block at a time. A B+ tree is a balanced multiway index tree designed to reduce block accesses.2 min read
16Chapter 16: B-tree versus B+ tree: fan-out, range scans, storageAssume you know balanced search trees, disk blocks, blocking factor, and ceiling and floor arithmetic. A B-tree is a balanced multiway search tree. A B+ tree is a related tree in which internal nodes guide the search and leaf nodes store all data entries.2 min read
17Chapter 17: GATE problem patterns and worked strategiesAssume that you know arrays, linked lists, binary search, balanced search trees, logarithms, and the meaning of a database record, key, pointer, and disk block. This chapter focuses on recognizing common GATE patterns and choosing the correct formula.3 min read