Skip to content
EndsemNov 20242024 patternSE IT

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)

Premium

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

Unlock

Instructions to the candidates

  1. Attempt Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8, Q9 or Q10.
  2. Figures to the right indicate full marks.
  3. Neat diagrams must be drawn wherever necessary.
  4. Use of electronic pocket calculator is allowed.
  5. Assume suitable data, if necessary.

Questions

  1. Q1

    1. a)

      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

      [5]
    2. b)

      What is meant by time and space complexity of an algorithm? What are asymptotic notations used for it?

      Also asked:Oct 2025

      [5]
    3. c)

      Describe in detail following classification of data structures : i) Linear and Non-linear ii) Static and Dynamic

      Also asked:Oct 2025

      [4]
  2. Q2

    1. a)

      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

      [5]
    2. b)

      What is an algorithm? Explain key characteristics of a good algorithm with suitable examples.

      Also asked:Oct 2025

      [5]
    3. c)

      Differentiate between linear search and Binary search.

      Also asked:Oct 2025 ·Oct 2024

      [4]
  3. Q3

    1. a)

      What is stack? How can a stack be implemented using linked lists?

      Also asked:Oct 2025

      [7]
    2. b)

      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

      [7]
  4. Q4

    1. a)

      What is linked list? With the help of neat diagrams explain different types of Linked list.

      Also asked:Oct 2025

      [6]
    2. b)

      What is a queue? How it is different from a stack?

      Also asked:Oct 2025

      [4]
    3. c)

      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

      [4]
  5. Q5

    1. a)

      What is binary tree? Describe the preorder, inorder and postorder traversal of a binary tree with an example.

      Also asked:Oct 2025

      [6]
    2. b)

      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

      [4]
    3. c)

      Convert the following generic tree to binary tree. Also explain the method used for conversion. (Show step by step conversion).

      Also asked:Oct 2025

      [4]
  6. Q6

    1. a)

      This part has equations that don’t show as text. Open the PDF to read it.

      [6]
    2. b)

      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

      [4]
    3. c)

      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

      [4]
  7. Q7

    1. a)

      Explain the applications of DSA in Social Network Graph Analysis and in AI Search Algorithms.

      Also asked:Oct 2025

      [7]
    2. b)

      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

      [7]
  8. Q8

    1. a)

      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

      [7]
    2. b)

      Differentiate between chaining and open addressing collision resolution techniques?

      Also asked:Oct 2025

      [4]
    3. c)

      What are the advantages and disadvantages of quadratic probing over linear probing?

      Also asked:Oct 2025

      [3]
  9. Q9

    1. a)

      Explain “Divide and conquer” principle of algorithm. How it is used in merge sort.

      Also asked:Oct 2025

      [5]
    2. b)

      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

      [5]
    3. c)

      Write down steps of Floyd-Warshall algorithm.

      Also asked:Oct 2025

      [4]
  10. Q10

    1. a)

      What is Longest Common Subsequence (LCS) problem? How principle of dynamic programming is used to find LCS. Give suitable example.

      Also asked:Oct 2025

      [5]
    2. b)

      Perform Huffman encoding for the string : “ABBCCCDDDDEEEEE”. Show the steps of frequency calculation, Huffman tree construction and obtain final codes.

      Also asked:Oct 2025

      [5]
    3. c)

      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

      [4]