Mid II Dsa Important
Mid II Dsa Important
2. Outline the steps involved in inserting and deleting a node in a circular linked list.
Provide the algorithm for each operation.
UNIT 4
1. Describe the structure and properties of a binary tree. What are the key differences
between a binary tree and a binary search tree.
2. Explain the concept of an AVL tree. Describe how it maintains balance and the types of
rotations used to keep the tree balanced with suitable example
3. Detail the procedures for inserting and deleting nodes in a B+ tree, using an example to
demonstrate each operation.
4. List and differentiate the three standard tree traversal methods: inorder, preorder, and
postorder.
5. What is a B-tree? Explain how insertion and deletion are handled, supported by suitable
examples
6. Constract an algorithm for DLL.
7. Construct a binary search tree(BST) for the following sequence of numbers
50,70,60,20,90,10,40,100,85,66,78 and Explain the various deletion operations in BST.
8. Illustrate the properties of binary tree?
9. Construct a AVL Tree for the following sequence 21,26,30,9,4,14,28,18,15,10,2,3,7
10. Explain binary tree traversals with example.
11. Define a tree. Explain the concepts of height and depth of a tree with examples.
12. What is Binary Search Tree? Construct a binary search tree for the data.
S={13,3,4,14,10,5,1,8,2,7,9,11,6,18}
13. Build a Binary Tree for the given In-order and Pre-order
In-order : D → B → E → A → F → C → G
Pre-order :A → B → D → E → C → F → G
14. Explain AVL tree with an example.
15. Generate a B-Tree of order 3 for the following key values: 25,10,12,15,39,64,53
16. Differentiate between B-Trees and B+Trees with examples.
17. Construct a Binary tree for the given In-order an Pre-order .
In-order:D,B,E,A,F,C,G
Pre-order:A,B,D,E,C,F,G
18. Compare and contrast B-trees and B+ trees. Discuss their applications in database systems
and file systems.
UNIT 5
1. Explain the Quick Sort algorithm. Provide average, best and worst-case time complexities
and also Quick Sort compare to Merge Sort?
2. Explain the role of a hash function in hashing. Describe the collision resolution techniques
with examples
3. What is Insertion Sort, and how does it differ from Bubble Sort? Discuss its best, average-
case and worst time complexity.
4. Explain the basic concept of Selection Sort. Provide time complexity in the best case,
average and worst-case scenario
5. Design and implement a graph traversal using Depth-First Search (DFS). Compare it with
Breadth-First Search (BFS) in terms of strategy and use cases
6. Implement c program to perform selection sort
7. Explain how to sort elements by using bubble sort from the list of elements
42,16,84,12,77,26,53
8. Define collision and describe the various collision resolution techniques with neat example
9. Draw DFS and BFS for the below graph