Searching and Addition in B-Tree
Learn about searching and addition in the B-trees.
We'll cover the following
Searching
The implementation of the find(x)
operation, which is illustrated below generalizes the find(x)
operation in a binary search tree. The search for x
starts at the root and uses the keys stored at a node, u
, to determine in which of u
’s children the search should continue.
A successful search (for the value ) and an unsuccessful search (for the value ) in a -tree is shown below. Shaded nodes show where the value of z
is updated during the searches.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy