5. Submission Take an empty B-tree of order 3. Take into 4 2-digit integers. Insert each of these 2-digit numbers in...
10. Submission In this question you will work with a hash table that uses double hashing. The hash table is size 11, the primary hash function is h(K)-K mod 11, and the secondary hash function is hp(K)-(K mod9) +1 Take an empty hash table. Take your student number and split it into 4 2-digit integers. Insert each of these 2-digit numbers in the order in which they appear in your student number into the empty heap. Then insert the values...
11. In the 2-3 tree given below (i.e., NOT a 2-3-4 tree), execute insert(28), insert(99), and insert(58), in that order, making sure to rebalance after each insertion. Draw the resulting 2-3 tree after executing these operations. 45 20 70 30 60 80 90 2(4(10 11) (25) (40) (50 55) (65) (71 75)(85) (92 96
1- Insert in the given order the following values into an intially empty 2-3-4 tree: 100, 200, 300, 400, 500, 600, 700, 110, 120, 130, 800, 750, 690. Show how the tree evolves after each value is inserted. In other words, draw a picture of the tree after each insertion. 2- Insert the same sequence as above into an initially empty red-black tree. Again draw a picture of the tree after each insertion, and indicate which rotations and/or color flips...
AVL Tree Initial status is empty. Insert 50, 25, 10, 5, 7, 3, 30, 20, 8, 15 into this AVL tree in order. Draw every status of the tree Question 3: AVL Tree Initial status is empty. Insert 50, 25, 10, 5, 7, 3, 30, 20, 8, 15 into this AVL tree in order. Draw every status of the tree
6. For the B+-tree where M=3 and L=5 shown below, show how an insert of value 80 is handled. || 12 || 50 || / | \ / | \ 2 12 50 5 18 65 7 20 70 9 21 72 10 24 78 10 points 7. For the B+-tree where M=3 and L=5 shown below, show how an insert of value 28 is handled. || 24 || 75 || / | \ / | \ / | \...
[74, 92, 75, 46, 60, 3, 90, 78, 7]The task here is to show a trace of the operations needed to insert objects with your (list of) keys, one by one, into an initially empty AVL tree with restoration of AVL balance (if necessary) after each insertion.Your submission should have the section heading 'AVL trace' followed by the coded trace of operations: Ixx to insert key xx at the root of the previously empty AVL tree; IxxLyy to insert key...
Data Structure!!!!!!!!!! For the B+-tree where M=3 and L=5 shown below, show how an insert of value 77 is handled. Use the method of splitting the node rather than redistributing between siblings. || 24 || 75 || / | \ / | \ / | \ || 10 || 16 || || 41 || 50 || || 84 || 90 || | / \ / | \ | \ \ / | | | | \ | | | 2...
For the B+-tree where M=3 and L=5 shown below, show how an insert of value 77 is handled. Use the method of splitting the node rather than redistributing between siblings. || 24 || 75 || / | \ / | \ / | \ || 10 || 16 || || 41 || 50 || || 84 || 90 || | / \ / | \ | \ \ / | | | | \ | | | 2 10 16...
SECTION B (4 QUESTIONS, 90 MARKS) Question 4. [32 marks in total] For this question, assume the definition of Java class Heap given in the Appendix. The heaps referred to in this question are all maxHeaps. a. (5 marks) Insert into an empty (binary) heap the values 35, 4, 72, 36, 49, 50. Draw all intermediate steps b. (3 marks) Carry out one deletion operation on the final heap in (a.) above. c. (2 marks) Give the worst-case time complexity...
Q1: How many levels your binary search tree has (including level 0)? Is the binary search tree you created height balanced? 2.1 Click the animations “Binary Search Tree”. Click “Insert” button to insert the following elements in the sequence, “50, 20, 30, 70, 90, 80, 40, 10, 5, 60, 85, 95”. http://algoanim.ide.sk/index.php?page=showanim&id=44 Q2: What is the insertion process of the binary search tree? The new identical element is inserted as left or right child of the existing same value? 2.3...