2. Advanced Data Structures and Operations
Augmented and self-balancing trees, range query structures, Fenwick and segment tree variants, union-find, tries, and order statistic structures.
10 notes
Augmented and self-balancing trees, range query structures, Fenwick and segment tree variants, union-find, tries, and order statistic structures.
General tree traversal patterns including DFS, BFS, level-order, zigzag, boundary traversal, LCA, serialization, and iterative approaches.
BST operations, traversals, augmentation, interval trees, order statistics, persistence, and thread-safe BST designs.
AVL, red-black, splay, scapegoat, B-tree families, treaps, finger trees, persistent balanced trees, and cache-oblivious layouts.
Tree-based and indexed search: BST, self-balancing trees, tries, suffix structures, segment and range trees, and spatial trees.
Search starting from a known nearby position, achieving time proportional to distance rather than full size.
Compute the sorted-order rank of a key in a search tree augmented with subtree sizes.
Select the element with a given rank from a balanced search tree augmented with subtree sizes.
Search for a key in a binary search tree by exploiting ordering between nodes.
Search in a binary search tree maintained with randomization to achieve expected logarithmic height.