Professional Documents
Culture Documents
Instructions:
IMP: Verify that you have received question paper with correct course, code, branch etc.
i) All questions are compulsory.
ii) Figure to the right indicate full marks.
iii) Assume suitable data wherever necessary.
Page 1 of 2
Q.3 Attempt any Three 18 CO-2
A Write down the inorder, preorder and postorder traversal of the 4
following binary tree
B What is a binary search tree (BST), explain its properties ? Sort 3 CO-2
the following numbers using binary search tree with neat diagram:
2, 15, 10, 1, 18, 4, 3, 9, 7, 6
C Give algorithm/pseudo code for DFS. 3 CO-4
Write the DFS Traversal for the following graph.
D Give algorithm/pseudo code for BFS. Write the BFS Traversal for 3 CO-4
the following graph.
*******************
Page 2 of 2