By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,158 Members | 975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,158 IT Pros & Developers. It's quick & easy.

question on avl trees

P: n/a
hi everybody

i have a question about avl trees. (I know this is not the best group
to post this question and i would appreciate if someone could redirect
me to a more appropriate group).

i want to write a function which insert an avl tree (ie, all the
elements of this one) to another one. I have made a trivial version
which add items one by one :

-----
void add_avl_tree
(avl_tree *avl,
avl_tree to_add)
{
if(to_add)
{
add_item(avl, to_add->item);
add_avl_tree(avl, to_add->right);
add_avl_tree(avl, to_add->left);
}
}
-----

can u think of any better solution?

thanks for any help

Sami Evangelista
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Evangelista Sami wrote:
hi everybody

i have a question about avl trees. (I know this is not the best group
to post this question and i would appreciate if someone could redirect
me to a more appropriate group).


For general purpose programming discussion comp.programming is quite good.

NR

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.