Uncommon

Red–black tree

Self-balancing binary search tree data structure

Red–black tree

Uncommon card · No. 93285

In computer science, a red–black tree is a self-balancing binary search tree data structure noted for fast storage and retrieval of ordered information. The nodes in a red-black tree hold an extra "color" bit, often drawn as red and black, which help ensure that the tree is always approximately balanced. When the tree is modified, the new tree is rearranged and "repainted" to restore the coloring properties that constrain how unbalanced the tree can become in the worst case. The properties are designed such that this rearranging and recoloring can be performed efficiently. The (re-)balancing is not perfect, but guarantees searching in O ( log ⁡ n ) {\displaystyle O(\log n)} time, where n {\displaystyle n} is the number of entries in the tree. The insert and delete operations, along with tree rearrangement and recoloring, also execute in...

Read on Wikipedia · Image Nomen4Omen, CC BY-SA 4.0

Open boosters, collect cards and trade them. Free to play.

Play for free
Red–black tree – Uncommon Wikipedia card | Wikiverse TCG