How do you balance a binary tree without using a self-balancing algorithm like the ones Red-Black Trees and AVL trees use?
Anonymous
Splay tree is a good example . Kinda like recently used cache. Recently used elems are near the root (or root) Maybe they were waiting for B/B++-tree. Since it's a self-balanced Tree (not binary though) which is used in DBMSs
Check out your Company Bowl for anonymous work chats.