Rodezwartboom
Rodezwartboom (red-black tree) is a self-balancing binary search tree data structure used in computer science to implement ordered associative containers such as maps and sets. Each node stores a key (and possibly a value), and the nodes are arranged to preserve the binary search tree property: keys in the left subtree are smaller than the node’s key, and keys in the right subtree are larger.
Each node has a color, either red or black. The red-black properties are: the root is black;
Balancing is achieved through recoloring and tree rotations during insertions and deletions. Insertion starts by adding
Operations such as search, insertion, and deletion all run in O(log n) time, where n is the