The time complexity of inserting elements in a complete binary heap of size n is:O(lgn)
归并排序:T(n)=O(nlogn)
B-TREE
h=O(log m N)[if !msEquation] [endif]
INSERT O(h)
DELETE O(h)
查找各个版本,为什么是log h?
The time complexity of inserting elements in a complete binary heap of size n is:O(lgn)
归并排序:T(n)=O(nlogn)
B-TREE
h=O(log m N)[if !msEquation] [endif]
INSERT O(h)
DELETE O(h)
查找各个版本,为什么是log h?