## STL經典算法集錦
所謂經典算法是指STL中有一定的復雜性并且又經常用到的算法。其他算法多是較為容易,利用STL操作很容易實現就不在此之列了。
共計15個算法,包括:
> 1、list::sort
> 2、heap
> 3、partition
> 4、rotate(鏈表版,數組版,即random_access_iterator、bidirection_iterator)
> 5、search_n
> 6、lower_bound
> 7、upper_bound
> 8、binary_search
> 9、next_permutation
> 10、prev_permutation
> 11、random_shuffle
> 12、Introsort(即順序表的sort)
> 13、_nth_element
> 14、Inplace_merge
>[info] 15、mergesort
將上述算法列出以收藏和稍后將上述親自實現。
- 前言
- STL經典算法集錦
- STL經典算法集錦<一>之list::sort
- STL經典算法集錦<二>之堆算法
- STL經典算法集錦<三>之partition與qsort
- STL經典算法集錦<四>之rotate
- STL經典算法集錦<五>之查找(lower_bound/upper_bound/binary_search)
- STL經典算法集錦<六>之排列(next_permutation/prev_permutation)
- STL經典算法集錦<七>之隨機洗牌(random_shuffle)
- STL經典算法集錦<八>之IntroSort