B Trees Trie
B Trees Trie
Objectives
M=5
•keyType k: The key that you are searching for in the B-Tree.
•BTreeNode *node: A pointer to the current node in the B-Tree where the search is being
performed.
Data Structures and Algorithms in C++, Fourth Edition
•node->keyTally: This holds the number of keys in the current node. 13
•The pointers array holds the child pointers,
Searching a B-Tree
– Complexity is O(logmn) but could have some larger constant value for
operations needed to manipulate keys per node
Fig. 7.39 The trie in Figure 7.38 with all unused pointer fields removed
These trees are useful to secondary storage and for information processing in
memory
What is next
Chapter 8: Graphs