Balanced Binary Search Trees
Learn about B-Trees and splay trees!
StartImplementing B-Trees in Python
Lesson 1 of 2
- 1To review the conceptual article, a B-tree is a balanced search tree designed to be an efficient data structure when working on physical storage devices like disks. When storing large amounts of da…
- 2The first thing we need to do is represent B-trees and B-tree nodes as Python objects. Starting with B-tree Nodes, we have some important characteristics we need to keep in mind: - Nodes can have …
- 3You have now completed the necessary steps to represent a BTree in Python and can now move on to implementing the fundamental operations needed to leverage BTrees. We start first with an insert met…
- 4We wouldn’t need three exercises dedicated to interesting BTree values if it was as simple as adding to a single key. Now we will focus on what happens once that initial root node is filled. If t…
- 5Following exercise four, all functionality needed for a split at the node level is complete. We can now focus on implementing the logic of traversing the BTree when trying to insert, including when…
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory