[求助]stl 使用过程中的问题
在STL中,MAP 和 SET 中的FIND 的函数使用的查找算法就是二分查找算法吗?
2007-07-02 12:54

2007-07-02 18:25
2007-07-02 20:34
2007-07-05 01:33
very good answer. There is an internal tree data structure used by map and set --- for a tree, look-up is guarantteed to be O(h), where h is the height of tree.
RB tree and other kinds of tree make the tree balanced so that the height h = n lgn.

2007-07-05 04:46