- 8
- 0
- 约1.69万字
- 约 73页
- 2016-11-22 发布于天津
- 举报
第1章搜索问题.ppt
状态空间 计算机对传统的问题求解方法带来了根本性的改变。 传统方法, 由专家给出公式, 使用者的任务是理解公式, 应用公式。 有些问题用传统方法描述很困难, 例如本节的几个例子 公式的推导需要很高的水平, 与实际问题相差较远,对应用者要求很高。 2. 计算机利用自己强大的计算能力和存储能力, 采用”猜”的方式, 试探法. 能解决问题的领域更广, 更结合实际. 例 旅行推销员问题 旅行推销员问题的搜索空间 2.1 回溯算法Backtracking Strategies 递归过程A simple recursive procedure 输入: 问题的初始状态. . The input: the initial state. 输出:一个规则表. 应用这个规则表可以把初始状态变为目标状态. 否则回答FAIL. The output of the procedure, a list of rules, using it we can get the goal from the initial state. If the procedure can not find the solution, it return FAIL. 4 LOOP: if NULL(RULES), return FAIL;5 R ← FIRST(RULES);6 RULES ← TAIL(RULES);7 RDATA ← R(DATA);8 PATH ←BACKTRACK( RDATA);9 if PATH = FAIL , go LOOP;10 return CONS( R, PATH) In step 3, after get the list of rules using the function APPRULES, we need to order the rules in the lists. The ordering is very important. If the “better”rule is put in the front of the list, it can be used firstly, the efficiency of the system is high. If the “worse” rule is put in the front, the system needs to trymore rules, the efficiency of the system is poor. The Example of Backtracking procedure. The 4 queen problem The problem representation the global database: 4*4 array the rule: Rij If i= 1 : there are no queen in the array 1 i= 4: There is a queen in the row i-1 then put a queen in the row i, column jWe order the rules according to the column.我们用Rij表示在棋盘的第 i 行第 j 列放一个王后. 按行的增加顺序依次放皇后, 在规则的排序上依列的上升次序排序. Termination condition: there are 4 queens in the chess board, they can not kill each other.终止条件: 4 皇后都放到棋盘上, 且不能互相杀死. We can use more informed rule ordering using function diag(i,j)我们可以采用含有较多信息的函数diag(i,j) . Diag(i,j) = the length of the longest diagonal passing through cell(i,j) diag(i,j) 是通过单元(i, j)的最长对角线的长度, 我们按diag(i,j)排序, we order
您可能关注的文档
- LYWSQ汽车尾气净化PM2.5治理剂.doc
- 实际监测3家,监测完成率100%,综合排放达标率为100%.doc
- 公主岭市范家屯镇东二路(东安全街—滨河一路)道路工程环.doc
- 安徽艾可蓝环保股份有限公司发动机尾气后处理产品升级扩产.doc
- 深职院宝安二级学院项目.doc
- 2012年芗城区全国城市文明程度指数测评审核材料责任分解.doc
- 内安路城区段道路建设工程环境影响报告书.doc
- 孟庄镇中心社区(二期)新型社区.doc
- 德庆县人民医院迁建项目二期工程.doc
- 沈彰开发大道建设项目.doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- 2026年妇幼健康信息化建设工作计划.docx VIP
- TSG 11-2020锅炉安全技术规程.docx VIP
- 《AIGC应用实战:写作、绘图、视频制作、直播》-课件全套 王翎子 第1--9章 认识AIGC ---即创的使用方法.pptx VIP
- 隧道施工及质量控制培训课件.ppt VIP
- 江苏省无锡市近三年数学中考考前考点分析及易错点巩固.docx VIP
- 公司职位说明书与绩效考核范本全套体系.doc VIP
- 建筑公司项目部及公司各岗位绩效考核表.pdf VIP
- 窗帘采购安装项目 投标方案(技术方案).docx
- JCT 2459-2018 陶粒泡沫混凝土.pdf VIP
- 配电室安全操作规程及管理规范.docx VIP
原创力文档

文档评论(0)