Question 4:
Insert the following into B+ tree of order 3. Show your work step by step and show null pointer.
90, 22, 27, 24, 28, 20, 51, 63, 8, 80, 15, 71, 35, 55
Question 4: Insert the following into B+ tree of order 3. Show your work step by...
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
Suppose a binary tree data (in tiny written size) is stored in an array (A) as given below and root is placed at “0”index. Note the array indices are in larger written size (0 to 74). Show the traversal data of the given tree for a) In-Order Traversal b) Post Order Traversal A 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 28 13 36 15 9 22 44 7 10 75 33 19 15...
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 || / | \ / | \ / | \...
2.1. Insert 85 into the following red-black tree. Show all your steps. (Note that the leaves (nil) are not shown) 33 o = black (20 50 80 70 90 2.2. Insert 23 into the following red-black tree. Show all your steps. (Note that the leaves (nil) are not shown) (33) 33 0 = black , 20 60 26 50 5 15 22 30
braw the binary min heap that results from inserting 8, 7, 3, 2, 4, 6, 9, 5, 1 in that order into an initially empty binary min hea p. Show final tree and the array representation of the heap. No need to show the intermediate work. 0 5 6 8 10 12 9. Consi der the binary heap shown below. What would the heap look like after deleteMin operation is performed? Show your work. 13 28 44 61 60 68...
Create a B-Tree of order 4 using the keys: 55, 33, 22, 11, 99, 88, 77, 44, 21, 54, 65, 89, 90, 50. please show work step by step
Q: Insert the following values into an initially empty B+ tree with parameter d=3 17, 11, 50, 22, 5, 35, 42, 60, 15, 30, 25, 27, 37, 40, 20.
(a) On an initially empty red-black tree, perform the following operations in this order: insert(1), insert(3), insert(5), insert(6), insert(7), delete(1) Show all the intermediate steps of your work (b) We can get another sorting algorithm by first inserting all the keys into a red-black tree, and then performing an in-order traversal of the tree. What's the time complexity of this algorithm? (As always, use O or Θ notation.)
please step by step
Question V (B+ Trees) (16 pts] Consider the following B+ Tree where M=4 and L=5 2000 12|17| 271D I Show the B+ Tree after each one of the following operations (note that all operations are independent, that is, in b perform the operation on the original B+ Tree, not the one obtained after performing the operation in a). a) Delete(29) b) Insert(6), Insert(7), Insert(8) (show only the B+ Tree after all 3 operations)
B trees java
NAME CSC 236 HW #3 (B-trees & heaps) 1. Given a B-tree of order 5, add the elements 1, 12, 8, 2, 25, 5, 14, 28, 17, 7, 52, 16, 48, 68, 3, 26, 29, 53, 55, 45 into a B-tree in this order. Draw the diagrams to show the B-tree after each element is added. 2. Add the elements 27, 35, 23, 22, 4, 45, 21, 5, 42, 19 into a heap in this order Draw...