Treap with implicit keys

后端 未结 4 551
滥情空心
滥情空心 2020-12-15 10:10

There\'s a data structure called treap: that\'s a randomized binary search tree, which is also a heap on randomly generated so-called \"priorities\".

There\'s a vari

4条回答
  •  無奈伤痛
    2020-12-15 10:30

    I don't think there is a name for that data structure since it is simply a combination of two orthogonal concepts. You could use implicit keys like this with just about any self-balancing tree data structure.

    You might want to take a look at Scapegoat trees, since they use the subtree size already for rebalancing and do not require any per-node overhead.

提交回复
热议问题