B+ Tree is an extension of B Tree which allows efficient insertion, deletion, and searches operations.
1) 19 records could be added in this tree without changing its height.
Insertion in B+ Tree
Step 1: Insert the new node as a leaf node
Step 2: If the leaf doesn't have required space, split the node and copy the middle node to the next index node.
Step 3: If the index node doesn't have required space, split the node and copy the middle element to the next index page.
2) There is no such key in the tree (key 3).
Deletion in B+ Tree
Step 1: Delete the key and data from the leaves.
Step 2: if the leaf node contains less than minimum number of elements, merge down the node with its sibling and delete the key in between them.
Step 3: if the index node contains less than minimum number of elements, merge the node with the sibling and move down the key in between them.
3)
Consider the B+ tree shown in the following as an original tree. 73 85 1 2...
Question 4. (20 point, 10 points each) Consider the B+ tree index of order d 2 shown below. Assume the left order is for and the right order is for If you can borrow from both siblings, choose the right sibling. Answer these question:s Root 50 73 85 8 18324o 256810*18*27 32 39 73 80* 41 45* 52 58 91 99* a) Show the B+ tree after inserting the data entry with key 7 into the original tree. b) Show...
1. Consider the B+ tree index. Every node can contain m entries, where 2s ms4 The root node is an exception: it allows 1 m s4. B+ tree 18 15 17 A. Show the B+ tree that would result from inserting data entries with key 31, 32, and 41 into the tree. B. Given the output of (A), show the B+ tree that would result from deleting the data entry with key 3 C. Given the output of (B), show...
Question 3. (25 points) Consider the B+ tree index shown below. Each intermediate node can hold up to five pointers and four key values. Each leaf can hold up to four records, and leaf nodes are doubly linked as usual, although these links are not shown in the figure. If you can borrow from or merge with both siblings, choose the right sibling. Answer the following questions 3080 I1 35425065 9098 12 68 69 70 79 98 99 1001105 30...
Problem 12.4. For the B-tree in Figure 12.4c, show the result of inserting the key 97. 23|39|51|61|71| 2 10 320 321 3 á as 52 39|60 67 68) 73|35|83|20|95| Solution: Solution for p12.4. goes here
Question 4. Consider the B+ tree shown below (also shown in one of the lecture slides), show the resulting B+ tree index for the following operations (40 points) B+ Tree Before Inserting 8* After Inserting 8* Root ZÍ DET I 10 15 20 221 20271205-3* 3| a. When an additional record with key value = 37 is inserted into the file (after the insert of a record with key value =8 has been completed). b. when an additional record with...
Consider the B+ tree index shown in Figure 1. Each intermediate node can hold up to five pointers and four key values. Each leaf can hold up to four records, and leaf nodes are doubly linked as usual, although these links are not shown in the figure. Answer the following questions. Show every step of the insertion and explain the process. 34.21-4 ostas 704 94 986 99-100-105 944954964974 LS Figure 1. (1). Insert a record with search key 109 into...
Tree & Hash Table & Heap Use the following integer keys 73, 58, 91, 42, 60, 130, 64, 87 to perform the followings: a) Binary Search Tree - Draw a binary search tree - Retrieve the integers keys in post-order - Retrieve the integers keys in pre-order - Draw a binary search tree after node 58 is deleted b) Create a Hash Table using the methods described below. Show the final array after all integer keys are inserted. Assumes that...
Here we study B-tree insertion and deletion.
(10 pts) Consider the B-tree with minimum branching factor of
t = 3 which is displayed below:
Here we study B-tree insertion and deletion (a) (10 pts) Consider the B-tree with minimum branching factor of t-3 which is displayed below DGKNYV AC EF HI LM OPRST WX Show the B-tree that results when J and then Q are inserted. You are expected to give (and clearly label) the B-tree obtained after inserting J,...
Tree & Hash Table & Heap Use the following integer keys 73, 58, 91, 42, 60, 130, 64, 87 to perform the followings: a) Binary Search Tree - Draw a binary search tree - Retrieve the integers keys in post-order - Retrieve the integers keys in pre-order - Draw a binary search tree after node 58 is deleted b) Create a Hash Table using the methods described below. Show the final array after all integer keys are inserted. Assumes that...
Build a splay tree inserting keys: 2, 13, 17, 4, 7, 19, 5, 8, 22, 6, 10. Show each step! a. Show the result of accessing keys 5, 8, 7 in order in the splay tree. Show the tree after each access. b. Show the result of deleting keys 10, 8, 7 in the splay tree. Start with the original tree and show the tree after each deletion.