Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms Data structs
Title: rbtree Download
 Description: AVL trees are actually easier to implement than RB trees because there are fewer cases. And AVL trees require O(1) rotations on an insertion, whereas red-black trees require O(lg n). In practice, the speed of AVL trees versus red-black trees will depend on the data that you re inserting. If your data is well distributed, so that an unbalanced binary tree would generally be acceptable (i.e. roughly in random order), but you want to handle bad cases anyway, then red-black trees will be faster because they do less unnecessary rebalancing of already acceptable data.On the other hand, if a pathological insertion order (e.g. increasing order of key) is common, then AVL trees will be faster, because the stricter balancing rule will reduce the tree s height. Splay trees might be even faster than either RB or AVL trees,depending on your data access distribution. And if you can use a hash instead of a tree, then that ll be fastest of all.
 Downloaders recently: [More information of uploader kknggo009]
 To Search: splay tree
  • [Splay] - Tree stretching all know if you use bina
  • [rbtree] - Red and black tree algorithm source code
File list (Check if you may need any files):
rbtree
......\rbtree.cpp
......\rbtree.ncb
......\rbtree.sln
......\rbtree.vcproj
    

CodeBus www.codebus.net