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
- 214443
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- May 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- III
- Paper code
- [6402]-57
Printed for: S.E. (I.T.)
Instructions to the candidates
- Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8 .
- Neat diagrams must be drawn wherever necessary.
- Figures to the right indicate full marks.
- Assume suitable data, if necessary.
Questions
Q1
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Explain stack PUSH and POP operations with example.
- c)[6]
Explain Priority Queue with example.
OR- a)
Q2
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Explain stack using Linked List with example.
- c)[6]
Explain Implicit stack and explicit stack with example.
- a)
Q3
- a)[6]
In a given BST state the output of Inorder, preorder, postorder, level wise traversals. Also draw mirror image.
- b)[6]
Explain recursive algorithm to display height of Binary Tree.
- c)[5]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q4
- a)[6]
Construct the expression tree from the following postfix expression using stack.AD * BC+ -
- b)[6]
State and Explain the algorithm to search data in BST. Give example.
- c)[5]
Explain advantages and disadvantages of TBT.
- a)
Q5
- a)[6]
If ‘1’ is the resource, explain step by step minimum spanning tree by ‘Prims’ algorithm.
- b)[6]
Explain with example by which methods Graph is represented?
- c)[6]
Explain the heap sort technique with the help of example.
OR- a)
Q6
- a)[6]
If ‘1’ is the source, find the shortest path from source to all vertices, using Dijkstra’s algorithm. Show answer step by step.
- b)[6]
Show the output of DFT using stack. Use ‘A’ as a starting node.
- c)[6]
Explain with example OBST.
- a)
Q7
- a)[6]
Create the hash table using Linear Probing Table size : 12 Data : 3, 2, 46, 6, 11, 13, 53, 12, 70, 90 Hash function: data% table size
- b)[6]
Explain in brief any 3 Collision resolution techniques.
- c)[5]
OR- a)
Q8
- a)[6]
Explain chaining without replacement with example.
- b)[6]
Explain with example different types of Hash functions.
- c)[5]
Differentiate ‘ifstream’ and ‘ofstream’ with example.
- a)