平衡树——2-3树(Binary Search Tree - 2-3 Tree)
简介(Introduction)
2-3 trees and 2-3-4 trees are binary search trees that allow one node have more than one items stored.
For BSTs, a node that holds a single item has at most two children. It is called 2-node.
For 2-3 tree, a node that can hold two items has at most three children. It is called 3-node.
For 2-3-4 tree, a node that can hold three items has at most four children. It is called 4-node.
构造2-3树(Building 2-3 tree)
We can build a 2-3 tree by inserting item one by one. To insert a key k, we pretend to search for it. This will take us to a leaf node in the tree, wh