Skip to content
EndsemOct 20252024 patternSE EC

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]-273

Printed for: S.E. (E &T.C./Electronics /Electronics Engineering

Instructions to the candidates

  1. Solve Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8, Q.9 and Q.10.
  2. Figures to the right indicates full marks.

Questions

  1. Q1

    1. a)

      Explain asymptotic notations Big O, Big  Big  . Illustrate each with an example.

      [8]
    2. b)

      Perform insertion sort on the following list and show all passes: 45, 12, 35, 2, 19

      [6]
  2. Q2

    1. a)

      What are the different types of sorting techniques? Analyse and explain their worst case time complexity?

      [6]
    2. b)

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

      [8]
  3. Q3

    1. a)

      Convert the infix expression (A + B*C) / (D – E/F^G) to postfix, showing stack contents stepwise.

      [8]
    2. b)

      Compare linear queue, circular queue, and priority queue.

      [6]
  4. Q4

    1. a)

      Write a C function to implement circular queue using array. Demonstrate one enqueue and one dequeue operation through code.

      [8]
    2. b)

      Write a ‘C’ Function to PUSH and POP elements from a stack of integers using an array. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Data Structures & Algorithms Page 1 of 3 2

      [6]
  5. Q5

    1. a)

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

      [5]
    2. b)

      Write structure definition for Singly Linked List. Differentiate between static memory and dynamic memory allocation.

      [5]
    3. c)

      Define pointer. How are pointers useful in linked list operations?

      [4]
  6. Q6

    1. a)

      Explain working of malloc(), calloc() and realloc() in dynamic memory allocation.

      [6]
    2. b)

      Write a C function to delete a node at a given position in a doubly linked list. Give any four advantages of linked lists over arrays.

      [8]
  7. Q7

    1. a)

      Construct a Binary Search Tree (BST) using: 40, 22, 10, 30, 50, 45, 60, 55 Show inorder traversal and check if tree is balanced.

      [8]
    2. b)

      Explain all four AVL rotations using diagrams. Construct AVL tree from sequence: 32, 16, 48, 8, 24, 40, 56, 20

      [6]
  8. Q8

    1. a)

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

      [8]
    2. b)

      Define binary tree. Explain following terms with suitable Examples: i) Root node ii) Left and right sub tree iii) Depth of tree

      [6]
  9. Q9

    1. a)

      Represent the following graph using adjacency matrix and adjacency list.

      [6]
    2. b)

      What is spanning tree? Define minimum spanning tree.

      [4]
    3. c)

      Define simple graph, directed graph and weighted graph with suitable diagrams. OR SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Data Structures & Algorithms Page 2 of 3 3

      [4]
  10. Q10

    1. a)

      Find out Minimum spanning Tree of the following graph using Kruskal’s algorithm.

      [8]
    2. b)

      Find the shortest path from node ‘a’ to all nodes in the graph shown below using Dijkstra’s algorithm. eeee SPPU QUESTION PAPER www.mysppu.in Page 3 MySPPU · Data Structures & Algorithms Page 3 of 3

      [6]