GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Binary Trees

Sam Beazley Computer Science Englisch

Inhalt der Mindmap

Binary Trees

  1. Hierarchical data structure

    • Generally, each node is breaks off into left and right subtrees
      • Root: first and upper node
      • Leaves: Nodes without children nodes
      • Node: Object containing an element
    • Binary Search Trees
      • Left Child < Current Node < Right Child
        • Inserting an Element
          • Create root node
            • Is new element greater than current node's element?
              • If there is a right child, move right
                • If not, create new right child
              • If there is a left child, move left
                • If not, create new left child
        • Creating BST
          • Construct tree
            • Initialize root and number of elements
              • Create insert function that calls upon node function
          • Construct node
            • Initialize current, right, and left element
              • Create insert function based on element's value

Informationen

Beschreibung
Computer Science Mindmap am Binary Trees, erstellt von Sam Beazley am 10/03/2021.
Erstellt von
Sam Beazley
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck