When we have red-black trees and AVL trees that can perform most of operations in logarithmic times, then what is the need for splay trees?

Tam ca

New member
When we have red-black trees and AVL trees that can perform most of operations in logarithmic times, then what is the need for splay trees?
A. no there is no special usage
B. In real time it is estimated that 80% access is only to 20% data, hence most used ones must be easily available
C. redblack and avl are not upto mark
D. they are just another type of self balancing binary search trees
 
Answer: B
Explanation: May be the stats showing 80-20% may be not accurate, but in real time that is the widely spread scenario seen. If you are into this type of situation, you must choose implementing splay trees.
 

Tìm kiếm

Back
Top