Assignment 2
Assignment 2
Marks
1. Explain left rotation in RB tree. 2
5. What is Binomial Heap? Write down the algorithm for Decrease key operation in Binomial Heap also
write its time complexity. 10
6. Explain the different conditions of getting union of two existing binomial Heaps. Also write
algorithm for union of two Binomial Heaps. What is its complexity? 10
7. Discuss the various cases for insertion of key in red-black tree for given sequence of key in an empty
red-black tree- {15, 13, 12, 16, 19, 23, 5, 8}. 10
8. Write an algorithm for insertion of key in the Red-Black Tree. Discuss the various cases for insertion
of key in red-black tree for given sequence of key in an empty red-black tree-5, 16, 22, 25, 2, 10, 18,
30, 50, 12, 1. 10
9. What is skip list? Explain the Search operation in Skip list with suitable example also write its
algorithm. 10
11. Explain and write an algorithm for union of two binomial heaps and also write its time complexity?
10
12. Insert the elements 8, 20, 11, 14, 9, 4, 12 in a Red-Black Tree and delete 12, 4, 9, 14 respectively. 10
40, 35, 22, 90, 12, 45, 58, 78, 67, 60 and then delete key 35 and 22 one after other.
14. Prove that if n>=1, then for any n-key B-Tree of height h and minimum degree t >=2, h<= log t ((n
+1)/2). 10