Professional Documents
Culture Documents
To be filled by Student
Q.No.1. Solve by using following array by quick sort algorithm and show steps.
85 24 63 45 12 31 96 50
(Marks….10)
Answer:
Q.No.2.(a) List the nodes of the tree below in preorder, postorder, and breadth-first
order.
(Marks….6)
Answer:
Q.No.2.(b) In
the binary search tree below, carry out the following operations in
sequence: Add 5, add 17, delete 23, delete 9. (Marks….4)
Answer:
Q.No.3. (a) Conduct DFS for the following graph.
(5 marks)
Answer
(b) Apply DFS based algorithm to solve topological sorting problem for the following
graph:
(Marks………5)
Answer: