Thread: Order or tree

  1. #1
    Registered User alice's Avatar
    Join Date
    Mar 2004
    Posts
    36

    Order of tree

    Please see the diag. inside the attach file, Am I correct of the different order below?

    In-order 1,2,3,4,5,6,7,8,9 (just sorting the number?)

    Pre-order 5,2,1,4,3,6,7,8,9

    Post-order 3,4,1,2,9,8,7,6,5

    thk a lot
    Last edited by alice; 06-05-2004 at 10:01 PM.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    This tutorial should allow you to verify your awnsers.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Tree Search
    By C++Newbie in forum C++ Programming
    Replies: 7
    Last Post: 04-05-2011, 01:17 AM
  2. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 10:45 PM