非变易算法

  1. /*
  2. 第21章 非变易算法
  3. Non-modifying sequence operations
  4. 21.0 advance, distance
  5. 为了了解模板,先了解一下这两个迭代器操作函数
  6. 21.1 逐个容器元素for_each
  7. for_each Apply function to range (template function)
  8. 21.2 查找容器元素find
  9. find Find value in range (function template)
  10. 21.3 条件查找容器元素find_if
  11. find_if Find element in range (function template)
  12. 21.4 邻近查找容器元素adjacent_find
  13. adjacent_find Find equal adjacent elements in range (function template)
  14. 21.5 范围查找容器元素find_first_of
  15. find_first_of Find element from set in range (function template)
  16. 21.6 统计等于某值的容器元素个数count
  17. count Count appearances of value in range (function template)
  18. 21.7 条件统计容器元素个数count_if
  19. count_if Return number of elements in range satisfying condition (function template)
  20. 21.8 元素不匹配查找mismatch
  21. mismatch Return first position where two ranges differ (function template)
  22. 21.9 元素相等判断equal
  23. equal Test whether the elements in two ranges are equal (function template)
  24. 21.10 子序列搜索search
  25. search Find subsequence in range (function template)
  26. 21.11 重复元素子序列搜索search_n
  27. search_n Find succession of equal values in range (function template)
  28. 21.12 最后一个子序列搜索find_end
  29. find_end Find last subsequence in range (function template)
  30.  
  31. 21.13 本章小结:
  32. */

  变易算法

  1. /*
  2. 第22章 变易算法 Modifying sequence operations
  3.  
  4. 22.1 元素复制copy
  5. copy Copy range of elements (function template)
  6. 22.2 反向复制copy_backward
  7. copy_backward Copy range of elements backwards (function template)
  8. 22.3 元素交换swap
  9. swap Exchange values of two objects (function template)
  10. 22.4 迭代器交换iter_swap
  11. iter_swap Exchange values of objects pointed by two iterators (function template)
  12. 22.5 区间元素交换swap_ranges
  13. swap_ranges Exchange values of two ranges (function template)
  14. 22.6 元素变换transform
  15. transform Apply function to range (function template)
  16. 22.7 替换Replace
  17. replace Replace value in range (function template)
  18. 22.8 条件替换replace_if
  19. replace_if Replace values in range (function template)
  20. 22.9 替换和复制replace_copy
  21. replace_copy Copy range replacing value (function template)
  22. 22.10 条件替换和复制replace_copy_if
  23. replace_copy_if Copy range replacing value (function template)
  24. 22.11 填充fill
  25. fill Fill range with value (function template)
  26. 22.12 n次填充fill_n
  27. fill_n Fill sequence with value (function template)
  28. 22.13 随机生成元素generate
  29. generate Generate values for range with function (function template)
  30. 22.14 随机生成n个元素generate_n
  31. generate_n Generate values for sequence with function (function template)
  32. 22.15 移除复制remove_copy
  33. remove_copy Copy range removing value (function template)
  34. 22.16 条件移除复制remove_copy_if
  35. remove_copy_if Copy range removing values (function template)
  36. 22.17 移除remove
  37. remove Remove value from range (function template)
  38. 22.18 条件移除remove_if
  39. remove_if Remove elements from range (function template)
  40. 22.19 不连续重复元素复制unique_copy
  41. unique_copy Copy range removing duplicates (function template)
  42. 22.20 剔除连续重复元素unique
  43. unique Remove consecutive duplicates in range (function template)
  44. 22.21 元素反向reverse
  45. reverse Reverse range (function template)
  46. 22.22 反向复制reverse_copy
  47. reverse_copy Copy range reversed (function template)
  48. 22.23 旋转rotate
  49. rotate Rotate elements in range (function template)
  50. 22.24 旋转复制rotate_copy
  51. rotate_copy Copy rotated range (function template)
  52. 22.25 随机抖动random_shuffle
  53. random_shuffle Rearrangle elements in range randomly (function template)
  54. 22.26 随机采样random_sample
  55. ...
  56. 22.27 容器分割partition
  57. partition Partition range in two (function template)
  58. 22.28 容器稳定分割stable_partition
  59. stable_partition Divide range in two groups - stable ordering (function template)
  60. 22.29 本章小结
  61.  
  62. */

  排序算法

  1. /*
  2. 第23章 排序算法
  3. Sorting:
  4. 1 sort Sort elements in range (function template)
  5. 2 stable_sort Sort elements preserving order of equivalents (function template)
  6. 3 partial_sort Partially Sort elements in range (function template)
  7. 4 partial_sort_copy Copy and partially sort range (function template)
  8. 5 nth_element Sort element in range (function template)
  9.  
  10. Binary search (operating on sorted ranges):
  11. 6 lower_bound Return iterator to lower bound (function template)
  12. 7 upper_bound Return iterator to upper bound (function template)
  13. 8 equal_range Get subrange of equal elements (function template)
  14. 9 binary_search Test if value exists in sorted array (function template)
  15.  
  16. Merge (operating on sorted ranges):
  17. 10 merge Merge sorted ranges (function template)
  18. 11 inplace_merge Merge consecutive sorted ranges (function template)
  19. 12 includes Test whether sorted range includes another sorted range (function template)
  20. 13 set_union Union of two sorted ranges (function template)
  21. 14 set_intersection Intersection of two sorted ranges (function template)
  22. 15 set_difference Difference of two sorted ranges (function template)
  23. 16 set_symmetric_difference Symmetric difference of two sorted ranges (function template)
  24.  
  25. Heap:
  26. 17 push_heap Push element into heap range (function template)
  27. 18 pop_heap Pop element from heap range (function template)
  28. 19 make_heap Make heap from range (function template)
  29. 20 sort_heap Sort elements of heap (function template)
  30.  
  31. Min/max:
  32. 21 min Return the lesser of two arguments (function template)
  33. 22 max Return the greater of two arguments (function template)
  34. 23 min_element Return smallest element in range (function template)
  35. 24 max_element Return largest element in range (function template)
  36. 25 lexicographical_compare Lexicographical less-than comparison (function template)
  37. 26 next_permutation Transform range to next permutation (function template)
  38. 27 prev_permutation Transform range to previous permutation (function template)
  39.  
  40. */

 数值算法

TOP

C++STL算法速查的更多相关文章

  1. 这可能是AI、机器学习和大数据领域覆盖最全的一份速查表

    https://mp.weixin.qq.com/s?__biz=MjM5ODE1NDYyMA==&mid=2653390110&idx=1&sn=b3e5d6e946b719 ...

  2. python 下的数据结构与算法---2:大O符号与常用算法和数据结构的复杂度速查表

    目录: 一:大O记法 二:各函数高阶比较 三:常用算法和数据结构的复杂度速查表 四:常见的logn是怎么来的 一:大O记法 算法复杂度记法有很多种,其中最常用的就是Big O notation(大O记 ...

  3. 机器学习算法 Python&R 速查表

    sklearn实战-乳腺癌细胞数据挖掘( 博主亲自录制) https://study.163.com/course/introduction.htm?courseId=1005269003&u ...

  4. 《zw版·Halcon-delphi系列原创教程》 zw版-Halcon常用函数Top100中文速查手册

    <zw版·Halcon-delphi系列原创教程> zw版-Halcon常用函数Top100中文速查手册 Halcon函数库非常庞大,v11版有1900多个算子(函数). 这个Top版,对 ...

  5. 可能是史上最全的机器学习和Python(包括数学)速查表

    新手学习机器学习很难,就是收集资料也很费劲.所幸Robbie Allen从不同来源收集了目前最全的有关机器学习.Python和相关数学知识的速查表大全.强烈建议收藏! 机器学习有很多方面. 当我开始刷 ...

  6. GNU Emacs命令速查表

    GNU Emacs命令速查表 第一章  Emacs的基本概念 表1-1:Emacs编辑器的主模式 模式 功能 基本模式(fundamental mode) 默认模式,无特殊行为 文本模式(text m ...

  7. 分享 - 27 个机器学习、数学、Python 速查表

      转载自:伯乐在线 - iPytLab,原文链接,侵删 机器学习涉及到的方面非常多.当我开始准备复习这些内容的时候,我找到了许多不同的”速查表”, 这些速查表针对某一主题都罗列出了所有我需要知道的知 ...

  8. 常用的OpenCV函数速查

    常用的OpenCV函数速查 1.cvLoadImage:将图像文件加载至内存: 2.cvNamedWindow:在屏幕上创建一个窗口: 3.cvShowImage:在一个已创建好的窗口中显示图像: 4 ...

  9. STL算法与树结构模板

    STL算法 STL 算法是一些模板函数,提供了相当多的有用算法和操作,从简单如for_each(遍历)到复杂如stable_sort(稳定排序),头文件是:#include <algorithm ...

随机推荐

  1. Nginx 502 Bad Gateway 错误的原因及解决方法

    http://my.oschina.net/zhouyuan/blog/118708 刚才在调试程序的时候,居然服务器502错误,昨天晚上也发生了,好像我没有做非常规的操作. 然后网上寻找了下答案, ...

  2. 【 D3.js 入门系列 --- 2 】 如何使用数据和选择元素

    接着上一讲的内容,这次讨论如何选择元素和使用数据.    现在页面中有三行文字,代码为: <p>Hello World 1</p> <p>Hello World 2 ...

  3. boot loader:grub入门[转]

    Boot Loader: Grub 在看完了前面的整个启动流程,以及核心模块的整理之后,你应该会发现到一件事情, 那就是『 boot loader 是加载核心的重要工具』啊!没有 boot loade ...

  4. 036. asp.netWeb用户控件之五使用用户控件实现分页数据导航

    UserDataPager.ascx用户控件代码: <%@ Control Language="C#" AutoEventWireup="true" Co ...

  5. 打印心形---print 的基础使用

    #!/bin/usr/env python#coding=utf-8'''用学习到的print语句,完成如下图形的打印工作打印心形'''print " *** *** "print ...

  6. 【netty】Netty系列之Netty百万级推送服务设计要点

    1. 背景 1.1. 话题来源 最近很多从事移动互联网和物联网开发的同学给我发邮件或者微博私信我,咨询推送服务相关的问题.问题五花八门,在帮助大家答疑解惑的过程中,我也对问题进行了总结,大概可以归纳为 ...

  7. php-fpm 老是warning 进程退出问题

    http://yangjunwei.com/a/723.html 分析Centos系统下LNMP频繁502 Bad Gateway问题 2012-01-28 杨俊伟 )     最近VPS总是出现 N ...

  8. Kafka安装及部署

    安装及部署 一.环境配置 操作系统:Cent OS 7 Kafka版本:0.9.0.0 Kafka官网下载:请点击 JDK版本:1.7.0_51 SSH Secure Shell版本:XShell 5 ...

  9. ios device model 详细内容

    参考 这里:https://theiphonewiki.com/wiki/Models http://en.wikipedia.org/wiki/List_of_iOS_devices http:// ...

  10. Javascript Promise对象学习

    ES6中的Promise对象 var p = new Promise(function(resolve, reject){ window.setTimeout(function(){ console. ...