Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 how to do binary tree bst search?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
greenapplesodaex




PostPosted: Tue Jul 12, 2005 4:09 pm   Post subject: how to do binary tree bst search?

bst, bresth first or level order search (excuse my spelling)

assume the tree class is given
you can getRootItem(), getLeftNode(), getRightNode(), and other set and attach methods (but i dont think you need those for this)
I want to print the tree in lvl order, can anyone show me a way to do this please? thanx (psodle code is ok too)
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Tue Jul 12, 2005 10:14 pm   Post subject: (No subject)

http://en.wikipedia.org/wiki/Binary_search
c5jim




PostPosted: Thu Jul 14, 2005 12:39 pm   Post subject: (No subject)

d Rolling Eyes Rolling Eyes
c5jim




PostPosted: Thu Jul 14, 2005 12:40 pm   Post subject: (No subject)

et Shocked
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: