算法导论ch5PPT课件.ppt

第五章 Greedy Algorithm;5.1 Elements of Greedy Algorithms 5.2 An activity-selection problem 5.3 Huffman codes 5.4 Theoretical foundations of Greedy Algorithms 5.5 A task-scheduling problem 5.6 Minimal spanning tree problem 5.7 Single-sourse shortest path problem;参考资料; 5.1 Elements of Greedy Algorithms;Greedy算法的基本思想 求解最优化问题的算法包含一系列步骤 每一步都有一组选择 作出在当前看来最好的选择 希望通过作出局部优化选择达到全局优化选择 Greedy算法不一定总产生优化解 Greedy算法是否产生优化解,需严格证明 Greedy算法产生优化解的条件 Greedy-choice-property Optimal substructure ;Greedy选择性 ;? 若一个优化问题的优化解包含它的 子问题的优化解,则称其具有优化 子结构;与动态规划方法的比较;证明算法所求解的问题具有优化子结构 证明算法所求解的问题具有Greedy选择性

文档评论(0)

1亿VIP精品文档

相关文档