AADS QuestionBank
AADS QuestionBank
50, 30, 21, 90, 10, 13, 20, 70, 25, 92, 80
10.Construct hash table of size 10 using linear probing with replacement strategy for
collision resolution. The hash function is h(x)=x%10. Calculate total number of
comparisons required for searching. Consider slot per bucket is 1.
11.Construct hash table of size 10 using linear probing without replacement strategy for
collision resolution. The hash function is h(x)=x%10. Calculate total number of
comparisons required for searching. Consider slot per bucket is 1.
11, 33, 20, 88, 79, 98, 44, 68, 66, 22
reate a hash table of size 10 and resolve collision using chaining with replacement and
C
without replacement. Use the modulus hash function.
15.Insert the following keys in an initially empty B-tree of order 5:
3, 7, 9, 23, 45, 1, 5, 14, 25, 24, 13, 11, 8, 19, 4, 31, 35, 56
how the tree after each insertion. Mention the total number of times that a split happens
S
during these insertions.
24.Apply Prim’s algorithm to find the minimum spanning tree from the given graph and
show the intermediate steps:
25.Construct the minimum spanning tree (MST) for the given graph using Kruskal’s
Algorithm.
26.Find the shortest distance from A to J on the network below using Dijkstra’s algorithm.
27.Why Dijkstra’s algorithm cannot be used for negative weights. How can we modify the
Dijkstra’s algorithm such that it works with negative weights? Write the modified
algorithm and discuss its run time complexity.
28.Apply Kruskal’s algorithm to find the minimum spanning tree from the following graph.
Show the intermediate steps. Compute the time complexity of Kruskal’s algorithm.
29.asd