- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
算法1-1 概述
教材 算法概论(注释版) 作者: Sanjoy Dasgupta, Christos Papadimitriou,Umesh Vazirani 机械工业出版社 We will add some materials in the handout. 参考书 T. H. Cormen C. E. Leiserson R. L. Rivest and C. Stein. Introduction to Algorithms, 2nd edition高等教育出版社出版影印版 2002.5 /~clr/ 《算法设计与分析》王晓东编著 清华大学出版社2008年1月第2版 参考书 What is algorithm? (Oxford Dict.)Algorithm: A set of rules that must be followed when solving a particular problem. From Math world A specific set of instructions for carrying out a procedure or solving a problem, usually with the requirement that the procedure terminate at some point. (一组特定的指令执行过程或解决问题的要求,通常该程序在某些时候终止) An algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output. Algorithm Problem definition 问题 Objective 目标 (very important) Evaluation 算法评价 Methods 方法 1 Medal tracker(一个 算法实例) Medal tracker 2 海盗分宝石问题(另一个算法问题) 五个海盗抢到了100颗宝石,每一颗都一样大小和价值连城。他们决定这么分:?抽签决定自己的号码(1、2、3、4、5)?首先,由1号提出分配方案,然后大家表决,当且仅当超过半数的人同意时,按照他的方案进行分配,否则将被扔进大海喂鲨鱼。?如果1号死后,再由2号提出分配方案,然后剩下的4人进行表决,当且仅当超过半数的人同意时,按照他的方案进行分配,否则将被扔入大海喂鲨鱼,依此类推。 条件:每个海盗都都是绝对贪婪且绝顶聪明的人,都能很理智地做出判断,从而做出选择。问题:第一个海盗提出怎样的分配方案才能使自己的收益最大化? Algorithm Correctness正确性 Efficienc有效性 Notion(概念) of algorithm Algorithm in daily life Clothes: strip packing裁剪 Cooking: menu scheduling Accommodation: facility location便利选址 Traffic: traffic lights Selfish routing自驾路线 Suburb s, a nearby train station t. Assuming that all drivers aim to minimize the driving time from s to t Selfish routing We have good reason to expect all traffic to follow the lower road Social optimal? ? to the long, wide highway, ? to the lower road. selfish behavior need not produce a socially optimal outcome Braesss Paradox悖论 Braesss Paradox Braesss Paradox Paradox thus shows that the intuitively (直接地)helpful action of adding a new zero-cost link can negatively impact all of the traffic!悖论表明,添加一个新的零成本的链
您可能关注的文档
最近下载
- GCB6.0操作手册.pdf VIP
- 省级优秀课件小学红色文化主题班会《红色交通证》.pptx VIP
- 《车间质量培训》课件.ppt VIP
- 第八届中国(淄博)国际陶瓷博览会ren体彩绘教学幻灯片.ppt VIP
- AP微积分AB 2014年真题 (选择题+问答题) AP Calculus AB 2014 Released Exam and Answers (MCQ+FRQ).pdf VIP
- delem DA61操作手册(中文).pdf VIP
- 新疆叶城县2025年上半年公开招聘辅警试题含答案分析.docx VIP
- 学堂在线 临床中成药应用 综合考试答案.docx VIP
- 离心泵与.ppt VIP
- 《离心泵.ppt VIP
文档评论(0)