how to do binary tree bst search?
Author |
Message |
greenapplesodaex
![](http://img.photobucket.com/albums/v235/greenapplesodaex/big.jpg)
|
Posted: 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) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
wtd
|
|
|
|
![](images/spacer.gif) |
c5jim
|
Posted: Thu Jul 14, 2005 12:39 pm Post subject: (No subject) |
|
|
d ![Rolling Eyes Rolling Eyes](images/smiles/icon_rolleyes.gif) |
|
|
|
|
![](images/spacer.gif) |
c5jim
|
Posted: Thu Jul 14, 2005 12:40 pm Post subject: (No subject) |
|
|
et ![Shocked Shocked](http://compsci.ca/v3/images/smiles/icon_eek.gif) |
|
|
|
|
![](images/spacer.gif) |
|
|