If it is a binary tree follow this.. * Right shift of the node(in
number) gives you the left child of that node
* Add binary 1 to the above result to get right child
* To find node from a child do right shift

On 2/10/09, praba garan <prabagara...@gmail.com> wrote:
> how to find the successor of an element in a tree ??
>
> thank u
>
> >
>


-- 
Thank you,
Rakesh Reddy.S

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to