Data Structures & Algorithms (DSA) SPPU Endsem Question Paper May 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
- May 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- IV
- Paper code
- [6402]-41
Printed for: S.E. (Computer Engineering)/(Artificial Intelligence & Data Science)/
Instructions to the candidates
- Answer to the questions Q1 or Q2, Q3 or Q4, Q5 or Q6 and Q7 or Q8.
- Assume the suitable data, if necessary.
- Figures to the right indicate full marks.
- Draw neat labelled diagram wherever necessary.
Questions
Q1
- a)[6]
Define the following terms : i) Complete Graph ii) Connected Graph iii) Subgraph
- b)[6]
Write a pseudo C/C++ code for depth traversal of graph represented using adjacency matrix.
- c)[6]
Find MST for the following graph using Prim’s algorithm. Show various steps. 2
Also asked:Nov 2025
OR- a)
Q2
- a)[6]
Write an algorithm for BFS traversal of graph.
- b)[6]
Give difference between Prim’s and Kruskal’s algorithm.
- c)[6]
What is topological sorting? Find topological sorting of given graph.
- a)
Q3
- a)[6]
Build AVL tree for following input: A,Z,B,Y,C,X,D,U,E. Show balance factor of all nodes and name rotation in each step.
- b)[6]
Explain static and dynamic tree tables with suitable example.
- c)[5]
Explain with example Red Black tree.
Also asked:Nov 2025
- a)
Q4
- a)[6]
Write functions for LL and LR rotation with respect to AVL tree.
- b)[6]
Explain with example K dimensional tree.
- c)[5]
Construct AVL tree for following data: 15,20,24,10,13,7,30,36,25
- a)
Q5
- a)[10]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[8]
Explain Tric data structure to insert, delete, search operations with example.
OR- a)
Q6
- a)[10]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[8]
Explain following primary index, Secondary index, Sparse index and Dense index with example. 3
- a)
Q7
- a)[8]
Compare Sequential and Direct access file organization.
Also asked:May 2024
- b)[9]
What is the concept of Multilist Structure in file organization. Explain Coral ring for multilist structure.
OR- a)
Q8