Professional Documents
Culture Documents
Deletion
o STEP 1 Find leaf L containing (key.pointer) entry to delete
o STEP 3 If L's right sibling can spare an entry, then move smallest entry in right sibling to L
STEP 3a Else, if L's left sibling can spare an entry then move largest entry in left sibling to L
STEP 3b Else, merge L and a sibling
STEP 4 If merging, then recursively deletes the entry (pointing tol or sibling) from the parent.
SCROLL TO TOP
Deletion /P-70
Case 1: Where Data Page Not full &Indexpage Not full
S 10 15 20 2 2 30U o S5 O
Before Deletion
After Deletion
Deletion /P-25
Case 2: Where Data Pagefull &Index page Not full
10 15 2 25 28 30 S
Before Deletion
|L
After Deletion
Deletion I/P-60
Case 3: Where Data
Page full& Index page Not full
51015 20 28 30 50 ss 6065 70 75 80 85 90 95
Before Deletion
Program
#include«stdio.h>
#include<conio.h>
#include<iostream>
using namespace std;
struct BplusTreeNode
int data;