CS301 – Data Structures (Subjective Fast-Learning)
6 High-Yield Subjective Prompts · Rapid exam-prep deck for CS301 covering Binary Tree node/link formulas, AVL tree rotations, Min/Max Heap array rules, Hashing linear probing, Dynamic Equivalence, and Huffman decoding.
High-Yield Subjective Topics
- [5 Marks] For an extended binary tree with N internal nodes, state the exact formulas for: (a) Total Links, (b) Internal Links, (c) External Links, and (d) External Nodes.
- [3 Marks] List the four AVL Tree imbalance cases and state the exact rotation required to rebalance each case.
- [3 Marks] In a 1-indexed array representation of a Min-Heap or Max-Heap, where are the root, parent, left child, and right child of node at index i stored?
- [5 Marks] Insert keys 1, 5, 4, 7 into a hash table of size 4 using hash function h(x) = (x + 3) % 4 with Linear Probing. Show final array indices.
- [3 Marks] In the Dynamic Equivalence Problem, state the three mathematical properties of an equivalence relation and describe Union(Si, Sj) = Sk.
- [3 Marks] Name three elementary O(n^2) sorting algorithms that do NOT use Divide and Conquer, and briefly explain what Skip List find() returns if the key is not found.