Updated DSA - QB 3
Updated DSA - QB 3
181/1, 182/1, Behind SAP Labs, Seetharam Palya, Basavanagar, Hoodi, Bangalore - 560 048
QUESTION BANK-3
Academic Year : 2024-25
Programme : CSE / ISE
Year/Semester/Section : III / II / B / C
Course Code/ Name : BCS304 / Data Structures and Applications
Faculty Name : Subrahmanya H M
RBT**
Q. No. Questions Marks COs*
Level
Write a C function to perform the following operation on Binary Search
1
Tree (BST), 08 CO4 L3
i) Searching an element in BST
ii) Inserting an new element to BST
2 Explain all methods used for traversing a graph with suitable CO5
12 L2
example and write a C function for the same.
Write a short note on priority queue. 06 L2
3 CO5
4 Define hashing. Explain different hashing functions with examples. 08 CO5 L2
5 What is collision? List the different methods of collision resolving
technique used in hashing. Explain rehashing method with an example. 10 CO5 L3
Define Forest. Explain Transforming a Forest into a Binary Tree with 06 CO4 L2
7
an example.
Define graph. Show the adjacency matrix and adjacency list
8 representation of the graphs given below.
i) ii)
08 CO4 L3
iii)
13 Define selection tree. Construct min winner tree for the runs of a
game given below. Each run consists of values of players. Find the 08 CO4 L2
first 5 winners.
14 Define the Disjoint set. Consider the tree created by the weighted
union function on the sequence of unions: union(0,1), union(2,3), 06 CO4 L2
union(4,5), union(6,7), union(0,2), union(4,6), and union(0,4). Write
simple find and collapsing find function.
15 What is chained hashing? Discuss its pros and cons. Construct the 10 CO5 L3
hash table to insert the keys: 7, 24, 18, 52, 36, 54, 11, 23 in a
chained hash table of 9 memory locations. Use h(k) = k mod m.
16 What is dynamic hashing? Explain the following techniques with
examples: 05 CO5 L2
i) Dynamic hashing using directories
ii) Directory less dynamic hashing
Prepared by Approved by
SUBRAHMANYA H M/ AP/CSE
(Name of Faculty / Designation / Dept.) (HOD – DEPT)