摘要: http://www.personal.kent.edu/~rmuhamma/Algorithms/MyAlgorithms/Greedy/greedyIntro.htm Greedy Introduction Greedy algorithms are simple and straightfor 阅读全文
posted @ 2016-11-06 07:25 papering 阅读(384) 评论(0) 推荐(0)
摘要: 1 /* 2 顺序存储的结构 3 */ 4 #define MAXSIZE 20 5 //存储空间初始分配量 6 typedef int ElemType; 7 //ElemType类型根据实际情况而定,这里假设为int 8 typedef struct { 9 ElemType data[MAXSIZE]; 10 // 数组存储数据元素,最... 阅读全文
posted @ 2016-11-06 07:21 papering 阅读(245) 评论(0) 推荐(0)
摘要: n(n+1)/2 连续自然数 1,2,3.....,n 队列 从中任意取出1至n个相加,可以表示的连续自然数队列中最大的自然数是多少 受“高斯求和--蛇头蛇尾脑图--长方形对角线脑图--苯环发现之旅故事”和“当前最优--贪心算法--greedy algorithms”启发,可得“脑图……眼图”。 拓 阅读全文
posted @ 2016-11-06 00:00 papering 阅读(185) 评论(0) 推荐(0)