redblack tree vs avl

75 阅读1分钟

www.geeksforgeeks.org/red-black-t…

rbavl
插入/删除provide faster insertion and removal operations than AVL trees as fewer rotations are done due to relatively relaxed balancing.
查询provide faster lookups than Red-Black Trees because they are more strictly balanced
存储requires only 1 bit of extra information per node.store balance factors or heights with each node thus requiring storage for an integer per node.
用途Red-Black Trees are used in most of the language libraries like mapmultimapmultiset in C++, etc.AVL trees are used in databases where faster retrievals are required.