Subtopic 7.4
Other Balanced Trees
3lessons23 min0done
The AVL tree keeps its balance strict. A red-black tree uses a looser rule and does fewer rotations; Java's TreeMap class and many language libraries use it.
A B-tree keeps many keys in one node and is designed for working on disk. This subtopic explains both structures with their rules and step-by-step insertion examples, using drawings and tables instead of code.