Binary tree implementation

Discussion in 'Python' started by Megha Agrawal, Feb 14, 2013.

  1. Hello All,

    I am a newbie to python language. I need your help in implementation of
    Binary tree in python. I have a count of nodes and I need to draw a binary
    tree. Suppose if count is 5 then tree will look like
    1
    / \
    / \
    2 3
    / \
    / \

    4 5.

    Does anybody have code for this? Or any hint?


    PS: Sorry for previous mail !!

    Thank you :)
    Megha Agrawal, Feb 14, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,091
  2. sharan
    Replies:
    4
    Views:
    674
    CBFalconer
    Oct 30, 2007
  3. sharan
    Replies:
    2
    Views:
    821
    SM Ryan
    Oct 31, 2007
  4. sharan
    Replies:
    1
    Views:
    678
    CBFalconer
    Oct 30, 2007
  5. jhava

    Binary Search Tree implementation.

    jhava, Aug 5, 2008, in forum: C Programming
    Replies:
    0
    Views:
    915
    jhava
    Aug 5, 2008
Loading...

Share This Page