VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



FYI: Self-Balancing Binary Tree

by LaVolpe (66 Submissions)
Category: Data Structures
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

For those that like linked lists, heaps, hash tables, etc, here is a self-balancing binary tree. If you are not familiar with binary trees, I included an RTF document to help understand them. For the rest of us, we know a worse-case binary tree is a linked list, and a best case binary tree is probably a Red-Black or AVL tree. A close runner up is a binary tree that has nodes added randomly, and then a better solution might just be this, a self-balancing binary tree. The tree does not balance perfectly, rather it balances its height on insertions and deletions maintaining a worse-case O(Log n)+1 search time. Not bad at all ;)

Rate FYI: Self-Balancing Binary Tree

Download FYI: Self-Balancing Binary Tree

Download FYI: Self-Balancing Binary Tree (101 KB)

FYI: Self-Balancing Binary Tree Comments

No comments have been posted about FYI: Self-Balancing Binary Tree. Why not be the first to post a comment about FYI: Self-Balancing Binary Tree.

Post your comment

Subject:
Message:
0/1000 characters