pls help me urgent..

This is a discussion on pls help me urgent.. within the C Programming forums, part of the General Programming Boards category; Hello friends can anybody pls tell me from where can i get code for binary tree traversals.. preorder, postorder pls ...

  1. #1
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48

    pls help me urgent..

    Hello friends can anybody pls tell me from where can i get code for binary tree traversals.. preorder, postorder

    pls help me i am in urgent need i have to prepare for my exam and i don't know how to code.. binary tree traversals..

    any help will be highly appreciated..

    thanks in advance..

    in

  2. #2
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Check out the tutorials section on this website...
    none...

  3. #3
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    pls help me i am in urgent need i have to prepare for my exam and i don't know how to code
    :=mind the "urgent" && exam =:
    Although im not a sinical or sarcastic person i love to see this phrase on this board.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    403
    all the ways to traverse a tree basically have 3 statements:

    struct node { int data, node *left, node *right };

    output self | cout << node->data;
    recurse to left | output_function(node->left);
    recurse to right | output_function(node->right);

    the 3 ways are basically different orders (left always comes before right)

    pre = output self first (self,left,right)
    in = output self between (left,self,right)
    post = output self last (left,right,self)

    Pay attention in class from now on.. and good luck

    Edit: Ignore inorder, I noticed you didnt ask for it so you probably dont need that one.
    Last edited by cozman; 12-31-2002 at 01:13 AM.

  5. #5
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    hey thanks all thanks sooo much..

    in

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Urgent! Pls help me for my assignment!!
    By seanlee210 in forum C Programming
    Replies: 5
    Last Post: 03-29-2009, 08:30 PM
  2. Replies: 1
    Last Post: 12-19-2008, 04:32 AM
  3. Urgent Help required.. pls help ??
    By intruder in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2003, 12:05 PM
  4. text box & buttons on window .. pls help urgent ???
    By intruder in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2002, 09:28 PM
  5. urgent...experts pls reply
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 08-03-2002, 12:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21