JNTUH Usedpapers March 2022
JNTUH Usedpapers March 2022
JNTUH Usedpapers March 2022
JN
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B.Tech II Year I Semester Examinations, March - 2022
DATA STRUCTURES
(Common to CSE, IT, ECM, CSBS, CSIT, ITE, CSE(SE), CSE(CS), CSE(AIML), CSE(DS),
TU
CSE(IOT), CSEN)
Time: 3 Hours Max. Marks: 75
Answer any five questions
All questions carry equal marks
H
---
1.a) Define a single linked list. Write the structure of the linked list with a neat sketch.
U
b) Explain the operations of queue. [8+7]
5.a) Construct a Red-Black tree with the following elements 40, 16, 36, 54, 18, 7, 48, 5. Delete
element 18 and add element 66.
er
b) Write an algorithm of single rotation and double rotation of an AVL tree. [9+6]
s
6.a) Explain the splaying operations of splay tree with an example.
b) Define Binary search tree. [12+3]
M
7.a) Write an algorithm to implement a depth-first search with an example.
b) Perform heap sort algorithm for (10 15 6 2 25 18 16 2 20 4). [12+3]
ar
8.a) Difference between tree and tries.
b) Illustrate the Brute force algorithm. [5+10]
c
---oo0oo---
h
20
22