本节介绍set集合的相关算法,分别是并集set_union,差集set_difference,交集set_intersection和对称差集set_symmetric_difference,这是个函数都提供了两个版本的函数原型:第一个版本是采用默认的排序比较方式 operator<;第二个版本是用户通过仿函数comp自行指定排序方式。注意:这四个算法接受的输入区间都是有序的,输出也是有序的。...
分类:
其他好文 时间:
2014-09-29 16:00:51
阅读次数:
120
Probability Theory概率论Trial试验intersection交union并frequency频率difference差additivity可加性complementation对立contain包含equivalent等价mean均值convolution[,k?nv?'lu:??...
分类:
其他好文 时间:
2014-09-29 00:19:15
阅读次数:
284
set_difference原型:
std::set_difference
default (1)
template
OutputIterator set_difference (InputIterator1 first1, InputIterator1 last1,
InputItera...
分类:
其他好文 时间:
2014-09-26 13:13:08
阅读次数:
153
set_symmetric_difference原型:
std::set_symmetric_difference
default (1)
template
OutputIterator set_symmetric_difference (InputIterator1 first1, InputIterator1 last1,
...
分类:
其他好文 时间:
2014-09-26 11:46:28
阅读次数:
225
Selection Sort选择排序The idea of the selection sort is to find the smallest element in the list and exchange it with theelement in the first position. Th...
分类:
其他好文 时间:
2014-09-25 19:44:07
阅读次数:
223
important attributes1)Snapshots, Not DifferencesThe major difference between Git and any other VCS (Subversion and friends included) is the way Git th...
分类:
其他好文 时间:
2014-09-25 03:37:28
阅读次数:
329
1.Redis的简单介绍Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务..
分类:
系统相关 时间:
2014-09-24 16:26:47
阅读次数:
582
Linear Constant-coefficient difference equations...
分类:
其他好文 时间:
2014-09-23 19:20:45
阅读次数:
167
Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务器。Redis的所...
分类:
其他好文 时间:
2014-09-22 15:47:22
阅读次数:
220
a. new Date() 和 Date()不是一回事,参考http://stackoverflow.com/questions/3505693/difference-between-datedatestring-and-new-datedatestring如果想获得epoch以来的毫秒数,必须用n...
分类:
数据库 时间:
2014-09-19 17:10:35
阅读次数:
461