

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The definition of b-trees and explains the insertion and deletion algorithms. A b-tree is a self-balancing tree data structure that maintains sorted data and supports efficient search, insertion, and deletion operations. The tree has properties such as each non-empty node having between ⌈m and m children, and all keys in a node being ordered. The document also includes the pseudocode for insertion and deletion functions.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


k 1 < k 2 < · · · < ks,
then (a) all keys stored in leftmost or 0th subtree are less than k 1 , (b) all keys stored in the ith subtree, 1 ≤ i < s, lie between ki and ki+1, (c) and all keys stored in the last subtree are greater than than ks.
// insert search current node for key; if (found) { print message; return null; } else if (current node is a leaf) { insert key into current node; } else { recursively insert into appropriate child of current node, possibly returning a new key and a new child; if (return is not null) { insert new key into current node; set reference to new child; } }
if (current node has too many children) { split the current node, creating a new key and a new child; return the key and child; } else { return null; }