RBT

Red black tree: BST data structure with extra color field for each nodes

  1. every node is either red or black
  2. root and leaves(nils) are all black
  3. every red node has black parent
  4. all single paths from a node x to a descendant leaf of x has same number of black nodes = black-height of x(not counts x itself)

REF:

results matching ""

    No results matching ""