[求助]stl 使用过程中的问题
在STL中,MAP 和 SET 中的FIND 的函数使用的查找算法就是二分查找算法吗?
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.