Search Trees

Description

Mind Map on Search Trees, created by Angelica Cordero on 16/06/2022.
Angelica Cordero
Mind Map by Angelica Cordero, updated more than 1 year ago
Angelica Cordero
Created by Angelica Cordero over 3 years ago
0
0

Resource summary

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)
                      Show full summary Hide full summary

                      Similar