Data Structures & Algorithms (DSA) SPPU Endsem Question Paper Nov 2024
All 10 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Pattern
- 2024 pattern
- Exam
- Endsem
- Session
- Nov 2024
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- III
- Paper code
- [6582]-276
Printed for: S.E. (Information Technology)
Most repeated DSA questions, with answers
Model answers in the SPPU exam pattern, unit by unit. Read them on MySPPU.
This subject
₹59regular price ₹149
See a free sample page
Instructions to the candidates
- Attempt Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8, Q9 or Q10.
- Figures to the right indicate full marks.
- Neat diagrams must be drawn wherever necessary.
- Use of electronic pocket calculator is allowed.
- Assume suitable data, if necessary.
Questions
Q1
- a)[5]
For the list : [44 33 11 55 77 90 40 60 99 22 88], Perform bubble sort step-by-step. Find the number of comparisons and swaps required to sort the elements in ascending order. Also mention time complexity of bubble sort.
Also asked:Oct 2025
- b)[5]
What is meant by time and space complexity of an algorithm? What are asymptotic notations used for it?
Also asked:Oct 2025
- c)[4]
Describe in detail following classification of data structures : i) Linear and Non-linear ii) Static and Dynamic
Also asked:Oct 2025
OR- a)
Q2
- a)[5]
What is time complexity? Explain its significance. Also find time complexity using step count method for the below algorithm : sum = 0 for i = 1 to n: for j = 1 to n: sum = sum + 1
Also asked:Oct 2025
- b)[5]
What is an algorithm? Explain key characteristics of a good algorithm with suitable examples.
Also asked:Oct 2025
- c)[4]
- a)
Q3
- a)[7]
What is stack? How can a stack be implemented using linked lists?
Also asked:Oct 2025
- b)[7]
How can a node be inserted in singly linked list? Explain it with suitable diagrams. Also write down basic steps used for insertion. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Data Structures and Algorithms Page 1 of 3 2
Also asked:Oct 2025
OR- a)
Q4
- a)[6]
What is linked list? With the help of neat diagrams explain different types of Linked list.
Also asked:Oct 2025
- b)[4]
What is a queue? How it is different from a stack?
Also asked:Oct 2025
- c)[4]
Convert the following Infix expression to Prefix and Postfix expression using tabular form. Also write down basic steps used for conversion. (A*B+C*D).
Also asked:Oct 2025
- a)
Q5
- a)[6]
What is binary tree? Describe the preorder, inorder and postorder traversal of a binary tree with an example.
Also asked:Oct 2025
- b)[4]
Write down steps of Heap sort algorithm? What is the role of “heapify” function. State any two real time applications of heap.
Also asked:Oct 2025
- c)[4]
Convert the following generic tree to binary tree. Also explain the method used for conversion. (Show step by step conversion).
Also asked:Oct 2025
OR- a)
Q6
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[4]
What is Heap? Sort the following elements in descending order using heap sort (show all steps) : 100, 34, 24, 45, 12, 89, 21.
Also asked:Oct 2025
- c)[4]
Make a binary search tree for the following sequence of numbers : 45, 36, 76, 23, 89, 115, 98, 39, 41, 56, 69, 48 Traverse the tree in Preorder, Inorder and Postorder. SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structures and Algorithms Page 2 of 3 3
Also asked:Oct 2025
- a)
Q7
- a)[7]
Explain the applications of DSA in Social Network Graph Analysis and in AI Search Algorithms.
Also asked:Oct 2025
- b)[7]
For the given set of values. 11, 33, 20, 88, 79, 98, 44, 68, 66, 22 Create a hash table with size 10 and resolve collision using chaining with replacement and without replacement. Use the modulus Hash function. (Key % size)
Also asked:Oct 2025
OR- a)
Q8
- a)[7]
For string matching, working module q = 11, how many spurious hits does the Rabin-Karp matcher encounters in Text T = 3141592653589793 when looking for the pattern P = 26. (Show all steps of Rabin Karp string matching algorithm)
Also asked:Oct 2025
- b)[4]
Differentiate between chaining and open addressing collision resolution techniques?
Also asked:Oct 2025
- c)[3]
What are the advantages and disadvantages of quadratic probing over linear probing?
Also asked:Oct 2025
- a)
Q9
- a)[5]
Explain “Divide and conquer” principle of algorithm. How it is used in merge sort.
Also asked:Oct 2025
- b)[5]
Consider a knapsack with a capacity of 50kg and the following items : Item 1 : Weight = 10 kg, Profit = 60 Item 2 : Weight = 20 kg, Profit = 100 Item 3 : Weight = 30 kg, Profit = 120 Determine the maximum profit value using fractional knapsack greedy algorithm.
Also asked:Oct 2025
- c)[4]
Write down steps of Floyd-Warshall algorithm.
Also asked:Oct 2025
OR- a)
Q10
- a)[5]
What is Longest Common Subsequence (LCS) problem? How principle of dynamic programming is used to find LCS. Give suitable example.
Also asked:Oct 2025
- b)[5]
Perform Huffman encoding for the string : “ABBCCCDDDDEEEEE”. Show the steps of frequency calculation, Huffman tree construction and obtain final codes.
Also asked:Oct 2025
- c)[4]
Write down the steps of quick sort. Mention its best case, average case and worst case time complexity. SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structures and Algorithms Page 3 of 3
Also asked:Oct 2025
- a)