Removing Binary Tree Node!

J

JoeAley2003

Hi all...


I need an example of a

RemoveNodeFromBTree(Data or Pointer);

function or even an alghoritm will help.

Will i need to rearrange the tree after this procedure?



Thanks.
 
G

Gianni Mariani

JoeAley2003 said:
Hi all...


I need an example of a

RemoveNodeFromBTree(Data or Pointer);

function or even an alghoritm will help.

Will i need to rearrange the tree after this procedure?


What are the balance requirements for the tree ?
 
G

Gianni Mariani

JoeAley2003 said:
If i understood you right, you may want to know that i used the
greater data to the right and the minor to the left.

Ben Plaff posted the url to a nice article.

The problem is not left or right it's about how you balance the tree to
optimize the search time. Look up AVL balanced binary trees.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top