摘要: 流stream 使用了数据视图,让你可以在比集合更高的概念上指定操作使用流,你只需要将操作的调度留给实现,例如,假设你要计算某个属性的平均值,你只需要指定数据源和属性,然后流类库会优化计算,比如使用多线程来求和,计数,合并结果1.迭代器使用了一种明确的遍历策略,同时也阻止了高效的并发执行.2.你可以 阅读全文
posted @ 2017-09-07 21:48 joeylee97 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef... 阅读全文
posted @ 2017-09-07 12:34 joeylee97 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 最小支配集: 从V中选取尽量少的点组成一个集合,让V中剩余的点都与取出来的点有边相连。 (点) 最小点覆盖: 从V中选取尽量少的点组成一个集合V1,让所有边(u,v)中要么u属于V1,要么v属于V1 (边) 最大独立集: 从V中选取尽量多的点组成一个集合,让这些点中间没有边项链,也就是说对于任何一条 阅读全文
posted @ 2017-09-07 11:13 joeylee97 阅读(600) 评论(0) 推荐(0) 编辑