Search Trees

Descrição

Mapa Mental sobre Search Trees, criado por Angelica Cordero em 16-06-2022.
Angelica Cordero
Mapa Mental por Angelica Cordero, atualizado more than 1 year ago
Angelica Cordero
Criado por Angelica Cordero mais de 3 anos atrás
0
0

Resumo de Recurso

Search Trees
  1. Balanced Search Trees
    1. Rotation: rotate a child to be above its parent
    2. AVL Trees
      1. Add a rule to the binary search-tree definition that will maintain a logarithmic height for the tree
        1. O(log n)
        2. Splay Trees
          1. Splaying: Given a node x of a binary search tree T, we splay x by moving x to the root of T through a sequence of restructurings.
            1. zig-zig zig-zag zig
          2. Multiway search tree
            1. (2,4) tree
              1. Map entries stored in a search tree are pairs of the form (k,v), where k is the key and v is the value associated with the key.
              2. Red-Black Trees
                1. Binary search tree with nodes colored red and black
                  1. Root property: the root is black
                    1. External Property: every external node is black
                      1. Red property: the children of a red node are black
                        1. Depth property: all external nodes have the same black depth (number of proper ancestors that are black)