Row-major and column-major address formulas for 2-D and 3-D arrays with any lower bounds, reverse problems that recover the base or a dimension from two addresses, triangular, symmetric and tridiagonal storage formulas, sparse matrices in triplet and CSR form, and the shift cost of insertion and deletion.
2 sheetsDS-02DS-03
Stack operations and their costs in array and linked implementations, two stacks in one array, balanced brackets, recursion and the call stack, valid pop sequences and Catalan counts, and infix, prefix and postfix conversion and evaluation with full stack traces.
2 sheetsDS-04DS-05
Linear and circular queues with the full and empty tests for each convention, deques and restricted deques, priority queue implementations, a queue built from two stacks and a stack built from two queues with exact operation counts, and linked queues.
1 sheetDS-06
Singly, doubly and circular lists: insertion and deletion with safe pointer order, costs with and without a tail pointer, sentinel nodes, reversal, middle node, Floyd cycle detection with cycle start and length, merging sorted lists, and list questions with compiled C.
2 sheetsDS-07DS-08
Binary tree terminology and the node, leaf and height relations, full, complete and perfect trees, k-ary trees, array representation, traversals and reconstruction from two traversals, expression trees, Catalan counts of shapes and labelled trees, and threaded trees.
3 sheetsDS-09DS-10DS-11
Binary search tree search, insertion and deletion in all three cases, inorder successor and predecessor, height bounds, BST from a preorder, insertion orders, valid search paths, and AVL trees (beyond the named syllabus): balance factor, the four rotations, insertion traces and the minimum nodes for a height.
3 sheetsDS-12DS-13DS-14
Binary heap array indexing, insertion and deletion with sift-up and sift-down traces, heap property checks, bottom-up build-heap in linear time, where the k-th smallest key can sit, counting heaps, and d-ary heaps.
2 sheetsDS-15DS-16
Adjacency matrix and adjacency list with their space and operation costs, degree sum, in-degree and out-degree for directed graphs, graphical degree sequences, edge and graph counts, and how to choose a representation.
1 sheetDS-17
A master complexity table for every structure, the traps that cost marks with their fixes, question patterns with the first step to take, and a one-page last-day sheet.
4 sheetsDS-18DS-19DS-20