What prevents Van Emde Boas trees from being more popular in real-world applications?

后端 未结 2 1299
北海茫月
北海茫月 2021-01-31 03:02

We know balanced trees perform insertion, deletion, and search in O(log n)-time, examples include

  • Red-Black
  • AVL
  • Splay
  • B-tree (a
2条回答
  •  渐次进展
    2021-01-31 03:42

    The asymptotic complexity is sometimes misleading. In the case for Van Emde Boas tree the constant is quite large see here. I quote:

    However, for small trees the overhead associated with vEB trees
    is enormous: on the order of 2^(m/2)
    

    There are also other cases where an algorithm with better complexity exists but it only gets better for an input so big that in practice it is almost never used e.g. linear time static RMQ.

提交回复
热议问题