GoConqr has a new look! Let us know what you think.

Mind map

Binary Trees

Phuc Pham English

Map content

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

Information

Description
Mind Map on Binary Trees, created by Phuc Pham on 23/10/2021.
Created by
Phuc Pham
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?