Dsa Phase2
Dsa Phase2
Questions Marks
Q-1 Answer the following questions (8 marks)
A Define hashing. List out hashing techniques. 2
B Write an algorithm for Queue (Insert and Delete operations). 3
C Write an algorithm to insert a node in beginning in single linked list. 3
OR
C Write an algorithm to delete a last node of single linked list. 3
Q-2 Answer the following questions (12 marks)
A Difference between Single Linked list and circular linked list. 3
B Write an algorithm of Bubble sort. 2
OR
B Write an algorithm of Merge sort. 2
C Define collision. List out any two collision resolution techniques. 2
D Generate BST for the following data: 5
10(root node), 8, 2, 7,16,11,9,3,5,14
Give pre-order, in-order, post-order tree traversal for that tree.
Questions Marks
Q-1 Answer the following questions (8 marks)
A Define hashing. List out hashing techniques. 2
B Write an algorithm for Queue (Insert and Delete operations). 3
C Write an algorithm to insert a node in beginning in single linked list. 3
OR
C Write an algorithm to delete a last node of single linked list. 3
Q-2 Answer the following questions (12 marks)
A Difference between Single Linked list and circular linked list. 3
B Write an algorithm of Bubble sort. 2
OR
B Write an algorithm of Merge sort. 2
C Define collision. List out any two collision resolution techniques. 2
D Generate BST for the following data: 5
10(root node), 8, 2, 7,16,11,9,3,5,14
Give pre-order, in-order, post-order tree traversal for that tree.