- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
3.2.2 Implementing Graph Search The main idea of procedure backtrack Backtrack is a recursive procedure, S is its argument, S is the current state of the search graph, if S is a goal state, the procedure terminates and return the solution path, else generate the child node of S, Schild, and use the procedure to Schild, recursively, If none of the children of S lead to a goal, then backtrack is applied to the siblings of S, and so on. Tree lists used in backtrack SL, for state list, lists the states in the current path being tried. If a goal is found, SL contains the ordered list of states on the solution path. NSL, for new state list, contains nodes awaiting evaluation, i.e. nodes whose descendants have not yet been generated and searched. DE, for dead end, lists states whose descendants have failed to contain a goal node. If these states are encountered again, they will be detected as elements of DE and eliminated from consideration immediately funtion backtrack begin SL:=[Start]; NSL:=[Start]; DE:=[ ]; CS:=start; while NSL π [ ] do begin if CS=goal then return SL if CS has no children(exclude nodes already on DE, SL, and NSL) then begin while SL is not empty and CS=the first element of SL do add CS to DE remove first element from SL; remove first element from NSL; CS:= first element from NSL; end add CS to SL; end else begin place children of CS children(exept nodes already on DE, SL, and NSL) on NSL; CS:= first element from NSL; add CS to SL end end; return FAIL; end J F E D C B A I H G 10 8 3 2 1
您可能关注的文档
- (材料表征课件)第二讲 晶体对X射线的衍射.ppt
- (材料表征课件)第三讲 晶体对X射线的衍射方向和强度.ppt
- (大学计算机课件)第1章 VFP系统环境及配置.ppt
- (大学计算机课件)第2章_VFP表达式及应用.ppt
- (材料表征课件)第五讲 Application of XRD-examples.ppt
- (大学计算机课件)第3章_关系数据库设计基础.ppt
- (大学计算机课件)第5章_SQL语言与视图设计.ppt
- (材料表征课件)第四讲 衍射仪和物相定性分析.ppt
- (大学计算机课件)第4章_数据库的建立与维护.ppt
- (大学计算机课件)第6章_结构化程序设计.ppt
- 2025年中国工业用洗涤设备行业市场运行态势及投资前景研判报告.docx
- 2025年中国防滑涂料行业市场全景调研及投资前景研判报告.docx
- 2025年中国种子辐照加工行业市场运行态势及发展战略研究报告.docx
- 2025年中国煤油行业市场现状调查及未来趋势研判报告.docx
- 2025年中国饱和聚酯树脂成套设备市场调查研究报告.docx
- 2025年中国摄谱仪行业市场全景评估及前景战略研判报告.docx
- 2025年中国分光光度计行业市场现状分析及前景战略研判报告.docx
- 2025年中国龙珠泡市场调查研究报告.docx
- 2025年中国川味火锅行业市场运行格局及战略咨询研究报告.docx
- 2025年中国吊钩抛丸清理机市场调查研究报告.docx
文档评论(0)