DSA - Question Bank
DSA - Question Bank
Unit 1- Hashing
Question
Question Statement Marks
NO
Question
Question Statement Marks
NO
Question
Question Statement Marks
NO
Describe an algorithm for breadth first traversal of graph. Also write its 6
Q12
complexity.
Identify the difference between DFS and BFS 4
Q13
Explain with example various storage structures for graph 4
Q14
Explain pseudo code for any of the depth first search traversal of binary tree. 4
Q15
Explain any tree applications of graph in area of computer engineering 4
Q16
Differentiate between Prim’s and Kruskal’s algorithm for generating spanning tree 4
Q17 of graph
Explain the situation in which linked representation of graph is more beneficial 4
Q18
than array representation.
What are graph storage structures? Explain in detail. 6
Q19
Explain pseudo code to find the shortest path in weighted graph. 6
Q20
Describe Dijkstra’s 6
Q21 Algorithm for finding shortest path and explain
it with example.
Write Kruskal’s Algorithm and explain it with example. 6
Q22
Explain algorithm to print a given graph in BFS. Give its time complexity. 6
Q23
Give complete specification of the graph ADT. Explain graph representation in 6
Q24
the form of adjacency matrix and adjacency
Explain algorithm for Breadth First Traversal of the graph. Also write its 6
Q25
complexity.
Identify the difference between Kruskal’s and 4
Q26
Prims algorithm for minimum spanning tree (MST).
Explain Graph as an ADT. 4
Q27
Write Kruskal’s Algorithm for MST and explain it with 6
Q28
example.
Explain the following: 6
i) What are graph storage structures?
Q29
ii) Topological sort.
Question
Question Statement Marks
NO
Explain with example LL, LR, RR, RL rotation for AVL tree. 8
Q10
Write a program in C/C++ for Word/Text processing using AVL Tree implementation. 8
Q11
What is symbol table? What are operations on symbol table? Give complete 6
Q12
specification of symbol table ADT.
Write and explain algorithm to delete node from AVL tree. 6
Q13
Explain different types of rotation for AVL tree with suitable example. 8
Q14
Explain the following terms with respect to height balanced tree: 8
1)LL
Q15 2)LR
3)RL
4)RR
Create an AVL search tree from given set of values: H, I, J, B, A, E, C, F, D, G, K, L 4
Q16
Construct the AVL Tree for following data: 5,4,7,1,3,2,15,20,10,12 4
Q17
Explain the C code for following function w.r.t AVL trees: 6
Q18 1)LR rotation
2)RL rotations
Construct the AVL tree for the following data by inserting each of the following data 5
Q19
item one at a time:
10, 20, 15, 12, 25, 30, 14, 22, 35, 40.
Construct the AVL tree for the following data by inserting each data item one at a 4
Q20 time. 15, 20, 24, 10, 13, 7, 30, 36, 2
Create an AVL tree for following data by inserting it in order one at a time: 4
Q21
10,20,15,12,25,30
Enlist the names of static tree table with examples 2
Q22
Unit 5 - Indexing and Multiway Trees
Question
Question Statement Marks
NO
Describe indexing. 2
Q1
Discuss different indexing techniques. 4
Q2
Explain search trees. And explain its different types. 6
Q3
Describe set as an ADT and various operations carried out on it. 6
Q4
Explain Multiway search tree with example. 6
Q5
Describe B-Tree and B+Tree with example of each. 6
Q6
Explain Trie Tree with example. 4
Q7
Describe Splay Tree with example. 4
Q8
Question
Question Statement Marks
NO
Describe file. What is the need of a file? How the files are stored on external 6
Q1 storage? What are the basic operations to be performed on files?