Data Structures & Algorithms (DSA) SPPU Endsem Question Paper Nov 2025
All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Subject code
- 210252
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- Nov 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- IV
- Paper code
- [6582]-36
Printed for: S.E. (Computer Engineering / AI & DS)
Instructions to the candidates
- Answer to the questions Q. No. 1 or Q. No. 2, Q. No. 3 or Q. No.4, Q. No. 5 or Q. No. 6. Q. No. 7 or Q. No, 8.
- Assume suitable data, if necessary.
- Draw neat labelled diagram wherever necessary.
- Figures to the right indicate full marks.
Questions
Q1
- a)[6]
Represent the following graphs using adjacency matrix.
- b)[6]
Explain Floyd Warshall algorithm to calculate shortest paths.
- c)[6]
Construct the minimal spanning tree for the graph shown below using Kruskal's algorithm. 2
OR- a)
Q2
- a)[6]
Find the MST for the following graph using Prims algorithm.
Also asked:May 2025
- b)[6]
Explain Depth first traversal of a graph with example.
- c)[6]
Find Single source shortest path using Dijkstra's Algorithm. Select source as vertex 1.
- a)
Q3
- a)[6]
What is K-D tree? Show creation of 2-D tree with example.
- b)[6]
Consider following : Input: keys[] = {10, 12, 20}, freq[] = {34, 8, 50} Draw all possible BSTs. Find minimum cost of the BST.
- c)[6]
Do the following operations on the tree : i) Zig Zag Rotation ii) Zag Zig Rotation
OR- a)
Q4
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Define Red- Black tree, state its properties and give suitable example.
Also asked:May 2025
- c)[6]
i) Illustrate AA tree. ii) Define splay tree. List the operations and rotations that can be performed on splay tree. 3
- a)
Q5
- a)[6]
Explain the various cases of node deletion in B- tree.
- b)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[5]
Explain indexing and types of indexing techniques.
OR- a)
Q6
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Answer the following questions w.r.t. trie tree: i) Which of the following is not true?
- a)
Trie requires less storage space than hashing
- b)
Trie allows listing of all the words with same prefix
- c)
Tries are collision free
- d)
Trie is also known as prefix tree ii) What can be the maximum depth of the trie with n strings and m as the maximum sting the length?
- a)
log2n b) log2m
- c)
n d) m iii) Which of the following is true about the trie?
- a)
root is letter a
- b)
path from root to the leaf yields the string
- c)
children of nodes are randomly ordered
- d)
each node stores the associated keys iv) Auto complete and spell checkers can be implemented efficiently using the trie.
- a)
True b) False v) What traversal over trie gives the lexicographical sorting of the set of the strings?
- a)
postorder b) preorders
- c)
inorder d) level order 4 vi) What is/are the key feature(s) of trie tree?
- a)
Fast String Operations b) Efficient Prefix Searches
- c)
Memory Compactness d) All of the above
- c)[5]
What are multiway search trees? Explain its need and applications.
- a)
Q7
ORQ8
- a)[6]
Differentiate between dense & sparse indices.
- b)[6]
Explain Sequential file organization and discuss their advantages and disadvantages.
- c)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- a)