Data Structures and Algorithms
Data Structures and Algorithms
Data Structures and Algorithms
13089
142301 DATA STRUCTURES AND ALGORITHMS (Regulation 2010) Time : Three hours
42
Differentiate between stack and queue and give its applications. Convert A * (B + D)/E F * (G + H/K) into Postfix expression.
Draw the expression tree for (a + b * c) + ((d * e + f) * g) .
What is an AVL tree?
Give two examples of disjoint sets. Differentiate between graph and tree. Trace the Eulers path and Eulers circuit in the graph.
94
21 9
9.
10.
42
19
19
42
Maximum : 100 marks
(ii)
Or (b) (i)
Write down the algorithm to convert infix to reverse polish form. Using it convert ((A + B) * D) (E F ) .
19
42
42
Or Or Or
2
(ii)
Explain the various tree traversal & predict a binary tree with Preorder : ABCDEFGHI & Inorder : BCAEDGHFI. (8) (8)
(ii)
(b)
(i) (ii)
Formulate an algorithm to search an element in a binary tree. Explain binary search tree and give its time complexity.
19
13.
(a)
(i) (ii)
42
What is open addressing hashing? Describe any one technique. Explain the operations on bit vector representation of sets.
21 9
(b)
(i)
(ii)
Discuss the use of sets in tree representation of sets in client-server (8) (8) (8)
environment. Write Dijkstras algorithm for shortest path. Explain topological sorting with an example.
14.
(a)
(i)
(ii)
94
1
(8) (8) (8) (8) (8) (8)
13089
(b)
(i) (ii)
Write down the Prims algorithm and find the minimum spanning tree for the following graph. (8)
(ii)
42
3
15.
(a)
(i)
19
42
(b)
(i) (ii)
19
94
21 9
42
(8)
(8) (8)
(6)
(5) (5)
13089