Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   SEARCH operation in a BINARY SEARCH TREE (http://www.go4expert.com/forums/search-operation-binary-search-tree-t21249/)

Chantheeya 8Mar2010 00:15

SEARCH operation in a BINARY SEARCH TREE
 
I need a simple c++ PROGRAM to perform SEARCH operations in a BIANRY SEARCH TREE:thinking::undecided

virxen 8Mar2010 01:17

Re: SEARCH operation in a BINARY SEARCH TREE
 
http://www.cplusplus.happycodings.co...hms/code5.html

Chantheeya 8Mar2010 09:07

Re: SEARCH operation in a BINARY SEARCH TREE
 
Thanks a lot for your approach... But if you see the program more deeply, you can see that the program can perform all the operations on a binary search tree except the SEARCHING an element opreation ( and thats exactly what i want )..... :(

xpi0t0s 8Mar2010 13:50

Re: SEARCH operation in a BINARY SEARCH TREE
 
There is a function in that code to print the elements in order. You can adapt that function so that instead of printing the element it compares it with what you're looking for. This should be quite simple to do.

virxen 8Mar2010 16:25

Re: SEARCH operation in a BINARY SEARCH TREE
 
http://www.scribd.com/doc/13597356/C...ry-Search-Tree

http://cppgm.blogspot.com/2008/06/bi...arch-tree.html


All times are GMT +5.5. The time now is 04:34.