Data Structures & Algorithms (DSA) SPPU Endsem Question Paper Oct 2025
All 10 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Pattern
- 2024 pattern
- Exam
- Endsem
- Session
- Oct 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- III
- Paper code
- [6582]-206
Printed for: S.E. (Artificial Intelligence and Machine Learning)
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, Q.9 or Q.10.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right side indicate full marks.
- Assume suitable data if necessary.
- Use of Scientific calculator is permitted.
Questions
Q1
- a)[5]
What is an Abstract Data Type (ADT)? Write ADT operations.
- b)[5]
Explain Big-Oh, Big-theta and Big-Omega notation with graphs denoting growth rate.
- c)[4]
Differentiate with example between: i) Static and Dynamic Data structures ii) Persistent and Ephemeral Data Structures
OR- a)
Q2
- a)[5]
What is Analysis of programming constructs-Linear, Quadratic, Cubic, And Logarithmic?
- b)[5]
Define characteristics of an Algorithm? Explain algorithm design strategy in detail?
- c)[4]
What is time and space complexity? How asymptotic notations plays important role in defining complexity class?
- a)
Q3
- a)[7]
What is infix, prefix and postfix expression? Give example of each. Explain evaluation of postfix expression with suitable example expression and assume values for variables used to solve it.
- b)[7]
Explain Primitive Operations on Linked List- Create, Traverse, Search, Insert, Delete, Sort, and Concatenate. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Data Structures & Algorithms Page 1 of 3
OR- a)
Q4
- a)[7]
Define Stack. Explain Implicit and Explicit stack and basic operation of stack with example.
- b)[7]
What is circular queue? Explain the advantages of circular queue over linear queue.
- a)
Q5
- a)[6]
Explain binary tree traversals - Inorder, Preorder, Postorder with example?
- b)[4]
Explain & Write an algorithm for Breadth first traversal of a graph.
- c)[4]
Explain Min and Max Heap in detail?
OR- a)
Q6
- a)[6]
Write Kruskal’s algorithm for minimum spanning trees and explain with example.
- b)[4]
Explain & Write an algorithm for Depth first traversal of a graph.
- c)[4]
Explain Heap sort in detail & Write applications of heap?
- a)
Q7
- a)[7]
Explain hash table, hash function, basic operations, bucket, collision, probe, overflow, open hashing, closed hashing, perfect hash function, rehashing, properties of good hash function,
- b)[7]
Explain in detail Naïve String Matching Algorithms?
OR- a)
Q8
- a)[7]
We have a hash table of size 10 to store integer keys, with hash function h(x) = x mod 10. Construct a hash table step by step using linear probing [5] without replacement strategy and insert elements in the order 31, 3, 4, 21, 61, 6, 71, 8, 9, 25. Calculate average number of comparisons required to search given data from hash table using linear probing without replacement.
- b)
Explain in detail Social Network Graph Analysis? [7] SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structures & Algorithms Page 2 of 3
- a)
Q9
- a)[5]
Explain the quick sort algorithm. Show the contents of array after every iteration of your algorithm start from following status of array. 27, 76, 17,9,57,90,45, 100, 79.
- b)[5]
Explain in detail 0/1 Knapsack with example?
- c)[4]
Explain in detail Huffman Coding Algorithms?
OR- a)
Q10
- a)[5]
Explain the Merge Sort algorithm. Show the contents of the array after every merge operation of your algorithm, starting from the following initial array: 42, 15, 67, 23, 89,4, 38, 50
- b)[5]
Explain in detail Activity Selection with example?
- c)[4]
Explain in detail Floyd-Warshall? SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structures & Algorithms Page 3 of 3
- a)