ADVANCED DATA STRUCTURES – MODULE 1
COMPLETE VTU ORIENTED NOTES (Search Trees)
1. Two Models of Search Trees
Internal search trees store actual data in every node. Leaf-oriented trees store data only in leaves.
Internal nodes guide the search. Leaf-oriented trees are efficient for range queries and disk-based
indexing.
2. General Properties of Search Trees
Recursive structure, sorted order, dynamic updates, logarithmic performance in balanced trees.
Performance depends on height. Balanced trees maintain O(log n).
3. Transformations
Rotations in AVL and Red-Black trees preserve BST property. Splitting and merging used in
B-Trees to maintain balance.
4. Height of Search Trees
Height determines complexity. Balanced trees reduce comparisons. AVL and B-Trees maintain low
height.
5. Basic Operations
Search, Insert, Delete. All depend on height. Balanced trees require rebalancing.
6. Returning from Leaf to Root
Required to update height and balance factor after insertion or deletion.
7. Non-Unique Keys
Handled using frequency counters, linked lists, or multiset structures.
8. Interval Queries
Used in databases and analytics. Time complexity O(log n + k).
9. Optimal Search Trees
Constructed based on search probability. Used in compilers and predictive systems.
10. Converting Tree into List
Inorder traversal gives sorted order. Threaded trees improve efficiency.
11. Removing a Tree
Postorder traversal ensures safe deletion.
12. AVL Trees
Strict height balance. Rotations maintain structure. Faster search.
13. Weight Balanced Trees
Balance based on subtree size. Efficient for rank queries.
14. (a, b)-Trees and B-Trees
Multiway trees. All leaves at same level. Efficient for disk storage.
15. Red-Black Trees
Color-based balancing. Fewer rotations. Used in operating systems.
16. Trees of Almost Optimal Height
Height close to optimal. Used in real-time systems.
17. Top-Down Rebalancing
Balancing performed while traversing downward. Efficient and avoids backtracking.
COMPARISON TABLES
AVL vs Red-Black, B-Tree vs B+ Tree, Internal vs Leaf-Oriented trees are important for exams.
PREVIOUS VTU QUESTIONS
Explain AVL, Red-Black, B-Trees, Optimal BST, weight balanced trees, and comparisons.
IMPORTANT EXAM TIPS
Focus on diagrams, algorithms, complexity, comparisons, and applications.
Practice previous papers and numerical problems.
This PDF is designed for full VTU exam preparation.