Data Structure(B.tech IIIsem)
Data Structure(B.tech IIIsem)
Roll No.
SSLD VARSHNEY ENGINEERING COLLEGE (518), ALIGARH
PRE-UNIVERSITY EXAMINATION 2024-25
B.TECH IIND YEAR (CSE) Semester-III
DATA STRUCTURE
Time: 02:00 Hours Max.Marks:70
Note- Attempt all Questions and Draw a suitable diagram wherever required.
SECTION-A
1. Attempt All questions. 1x10=10
Qno. Question Marks CO
a. What is a sparse matrix? How is it stored in the memory of a computer? 1 1
Rank the following typical bounds in increasing order of growth rate: 1 1
b. O(log n), O(n 4 ), O(1), O(n 2 log n)
c. Convert the following arithmetic infix expression into its equivalent postfix 1 2
expression. (a + (b – c))* ((d – e)/(f + g – h))
SECTION-B
2. Attempt any THREE questions of the following: 10x3=30
Q.no. Question Marks CO
th
a. Write a C program to insert a node at k position in single linked list. 10 1
10 3
c. Explain Tower of Honoi problem and write a recursive algorithm to solve it.
d. Write an algorithm for Breadth First search (BFS) and explain with the help 10 4
of suitable example.