What do you mean by binary Tree?

Discussion in 'C++' started by johnBMitchell, May 11, 2012.

  1. johnBMitchell

    johnBMitchell New Member

    Joined:
    Feb 17, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    CA, USA
    Home Page:
    http://www.spinxwebdesign.com/
    Binary tree is a fundamental data structure which use in computer technology. It is away to stored data in sorted order so it can be retrieve and store fast. Data store in hierarchy order means all the node (memory space) connected with each other. Here I give you graphical over view and syntax of binary trees.
    Code:
             10
           /    \
        8       15
        / \    /  \
      4   7  12  19
    
    Initialization of Binary Tree,
    Code:
    struct node
    {
      int key_value;
      node *left;
      node *right;
    };
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice