Why is insertion into my tree faster on sorted input than random input?

前端 未结 8 1130
慢半拍i
慢半拍i 2021-02-02 12:33

Now I\'ve always heard binary search trees are faster to build from randomly selected data than ordered data, simply because ordered data requires explicit rebalancing to keep t

8条回答
提交回复
热议问题