DSA October 2023
DSA October 2023
:
P9111 [6179]-236
[Total No. of Pages : 4
c) Apply Dijkstra’s Algorithm for the graph given below, and find the shortest
path from node A to node C. [6]
OR
[6179]-236 1 P.T.O.
Q2) a) Define indegree & outdegree of a directed graph. Write degree for G1 &
G2. Write indegree & outdegree of each vertex for G3 graph. [6]
b) Construct the minimum spanning tree (MST) for the given graph using
Kruskal’s Algorithm. [6]
c) Find the number of different topological orderings possible for the given
graph. [6]
[6179]-236 2
b) Draw splay tree after [6]
i) Zig rotation
ii) Zag rotation for follwoing tree-
Q5) a) Create a B- Tree of order 5 from the following list of data items: [9]
30, 20, 35, 95, 15, 60, 55, 25, 5, 65, 70, 10, 40, 50, 80, 45
b) Explain following indexing techniques: [8]
i) Primary
ii) Secondary
iii) Sparse
iv) Dense
OR
[6179]-236 3
Q6) a) Create a B+Tree of order 3 from the following list of data items: [9]
1, 3, 5, 7, 9, 2, 4, 6, 8, 10
b) Define trie tree. Compare trie tree with hash table. Draw trie tree for
following data: bear, sell, bell, bid, stock, bull, buy, stop. [8]
Q7) a) Explain sequential & direct access file organization. Also list two
advantages & disadvantages of same. [9]
b) Explain Indexed sequential access file organization. Also list two
advantages & disadvantages of same. Compare sequential & indexed
sequential file organization. [8]
OR
Q8) a) What is linked organization? Explain inverted file and coral rings with
respect to linked organization. [9]
b) Explain multilist files & cellular partitions. [8]
[6179]-236 4