Searching and Addition in B-Tree
Learn about search 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 is shown below (for the value ) and an unsuccessful search (for the value ) in a B-tree. Shaded nodes show where the value of 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