Cs-08 Data Structure Using c Language
Cs-08 Data Structure Using c Language
Seat No.
_______
JAM010156524
JAM010156524
Faculty Code : 003
Subject Code : 23SI-BCAP-MA-02-03001
JAM010156524
JAM010156524
Q.1 (B) What is Big-Oh notation? Provide a brief explanation. 2
Q.1 (C) Compare and contrast Big-Oh and Big-Omega notations in algorithm analysis. 5
OR
JAM010156524
JAM010156524
JAM010156524
JAM010156524
OR
Q.3 (A) Fill in the blanks: 3
(1) The primary purpose of a deque is to allow insertion and deletion from
both_______.
(2) The function used to insert an element into a queue is called _______.
(3) Recursion in data structures can be implemented using _______.
Q.3 (B) Write down applications of stack and queue. 2
Q.3 (C) Write a note on deque. 5
JAM010156524
JAM010156524
(2) Traversing the entire linked list involves starting from the ________ node and
moving to each subsequent node until reaching the end.
(3) To insert a node after a specified node in a singly linked list, you need to update
the ________ reference of the preceding node.
Q.4 (B) Differentiate Singly and Doubly Linked List. 2
Q.4 (C) Write an algorithm to insert new node in the beginning of the singly linked list. 5
OR
Q.4 (A) Fill in the blanks: 3
(1) In a doubly linked list, each node contains references to both the ________
and________ nodes.
(2) Circular linked lists are characterized by the last node pointing back to
the________ node, creating a loop.
JAM010156524
JAM010156524
JAM010156524
(3) Traversing a header linked list involves starting from the ________ node and
moving to each subsequent node until reaching the end.
Q.4 (B) Write down applications of the linked list. 2
Q.4 (C) Write an algorithm to delete last node from singly linked list. 5
JAM010156524
JAM010156524
Q.5 (C) Briefly explain the concept of a minimal spanning tree in a graph. 5
JAM010156524
JAM010156524
JAM010156524
JAM010156524
JAM010156524
JAM010156524