¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Binary Trees

Phuc Pham Inglés

Contenido del mapa

Binary Trees

  1. Root (first node)

    • Can have repeating elements.
    • Can be structured or not
    • Leaves (nodes without children)
    • Can have one or two children
  2. Example (Binary Search Tree): Organized

    • Root
      • Left children
        • Root > Left
        • left child 1
        • left child 2
      • Right Children
        • Root < Right
        • right child 1
        • right child 2
      • Value principle applies to subtrees also
        • Elements on the left side will always be less than the root.
          • Elements on the right side will always be greater than the root and the left side.
            • Inserting and searching elements follow the same pattern of recursively comparing the target element to whether that element is greater than or less than the left or right children.
              • Happens recursively in python.
    • Dictated by ordered relationships
      • Current element
        • Greater than
        • Less than

Información

Descripción
Mapa Mental sobre Binary Trees, creado por Phuc Pham el 23/10/2021.
Creado por
Phuc Pham
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?