- 5
- 0
- 约1.56万字
- 约 40页
- 2018-01-25 发布于浙江
- 举报
a19-NP-Complete 算法导论 教学课件
* Cook证明了SAT(Boolean Satisfiability Problem)问题是一个NP完全性问题。 * * * * * * * * * * * * * * * * * Cook 于1971找到一个NPC,现在发现的NPC已经超过3000个 * Search Method 3: Local Search (局部搜索) Example: Determine if the following formula is satisfiable. ? =(u1?u2)?(u1??u2)?(u1?u3)?(u2?u3)?(u1??u3 )?(u2??u3) u1 u2 u3 begin: S= 0 0 0 unsatisfied clauses=3 flip u1: 1 0 0 unsatisfied clauses=1 flip u2: 0 1 0 unsatisfied clauses=2 flip u3: 0 0 1 unsatisfied clauses=3 S= 1 0 0 flip u1: 0 0 0 unsatisfied clauses=3 flip u2: 1 1 0 unsatisfied clauses=0 So ? is satisfiable. S=( 0 0 0 ) :3 ( 0 0 1 ) :3 ( 0 1 0 ) :2 ( 1 0 0 ) :1 S=( 1 0 0 ) :1 ( 1 1 0 ) :0 ( 0 0 0 ) :3 * Search Method 3: Local Search (局部搜索) S=( 0 0 0 ) :3 ( 0 0 1 ) :3 ( 0 1 0 ) :2 ( 1 0 0 ) :1 S=( 1 0 0 ) :1 ( 1 1 0 ) :0 ( 0 0 0 ) :3 GSAT(??CNF) // Las Vegas algorithm begin 1 for i=1 to Max-tries 2 S=random(?); // random assignment 3 for j=1 to Max-moves 4 if S satisfies ? then return(Yes); 5 else S=S with some variable flipped to minimize the number of unsatisfied clauses; 6 end 7 end 8 return(No satisfying truth assignment found); end Example: ? =(u1?u2)?(u1??u2)?(u1?u3) ?(u2?u3)?(u1??u3 )?(u2??u3) * No polynomial-time algorithm has been found for any NP-Complete problem.(对任何NPC,尚没有找到多项式算法) 特殊情况 概率分析 近似算法 启发式算法 34.8 How to solute NP-Complete Class P NP NP-Complete * Exercises Implement GSAT on computers. * Some Stories John Louis von Neumann Born 28 December 1903, Budapest, Hungary; Died 8 February 1957, Washington DC; Brilliant mathematician, synthesizer, and promoter of the stored program concept, whose logical design of the IAS became the prototype of most of its successors - the von Neumann Architecture. * Some Stories John Louis von Neumann von Neumann model * Some Stories von Neumann model 四个主要部分 Memory Arithmetic Logic Unit (ALU, 运
您可能关注的文档
- 6Game开发包 手机游戏开发入门 教学课件.ppt
- 6Fortran的数据结构 FORTRAN语言程序设计 教学课件.ppt
- 6JAVA 输入输出流 java项目课件.ppt
- 6lecture 2_ solutions 语法资料课件.pdf
- 6EnPn 临床营养学 教学课件.ppt
- 6_1 第6章 除尘装置 大气污染控制工程 课件.ppt
- 6_3 第6章 除尘装置 大气污染控制工程 课件.ppt
- 6_2 第6章 除尘装置 大气污染控制工程 课件.ppt
- 6th weekJane_Austen 英美文学赏析 教学课件.ppt
- 6_4 第6章 除尘装置 大气污染控制工程 课件.ppt
- 语文湖南长沙市炎德英才大联考雅礼中学2026届高三月考试卷(五)(1.6-1.7).docx
- 物理辽宁名校联盟2026届高三年级上学期期末质量检测(1.15-1.16).docx
- 化学湖北荆州中学2025-2026学年高二上学期12月月考(12.24-12.25).docx
- 化学陕西2026年宝鸡市高考模拟检测试题(一)(宝鸡一模)(1.10-1.11).docx
- FANUC机器人 iRVision 智能视觉.pdf
- FANUC机器人点焊-培训教材.pdf
- KUKA电气元器件检修.pdf
- 发那科机器人设置辅助功能FANUC.pdf
- FANUC机器人弧焊教程.pdf
- FANUC双驱及多位置标定功能指导手册.pdf
最近下载
- 安徽省合肥市名校联考2026届数学八年级第一学期期末教学质量检测模拟试题含解析.doc VIP
- 2025年山西职业单招考试真题及答案 完整版2025.pdf VIP
- 区块链基本概念.pptx VIP
- 2021年度“双一流”建设专项资金绩效评价自评报告.pdf VIP
- 劳动法案例分析及参考答案.docx VIP
- 广西左江治旱黑水河现代化灌区工程环境影响报告书.pdf VIP
- FDA热效应评估指南(中文翻译件) thermal effects evaluation.pdf VIP
- 华东理工大学双一流建设中期自评报告.PDF VIP
- 项目环境与职业健康安全管理工作计划.doc VIP
- 人人商城恶意诉讼应诉指南-含胜诉答辩状和证据清单.docx
原创力文档

文档评论(0)