Date: 2004-03-08 07:38 am (UTC)
Eh, with Google these days if you missed it in class it's no big deal. Try "avl tree node rotate". BackInMyDay(tm) it wasn't so easy to look things up. The project is big, but if you get the AVL tree working that's 90% of it. Throw in an STL list, some command processing and you're done.

In-order traversal is simple. Here's some recursive pseudo code. You can also do it iteratively, but it's more complex:

 inorder(tree)
 begin
     if tree is null, return;

     inorder(tree.left_subtree);
     print(tree);
     inorder(tree.right_subtree);
 end 
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

logomancer: Xerxes from System Shock 2 (Default)
logomancer

January 2015

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 7th, 2025 03:30 am
Powered by Dreamwidth Studios