正在加载图片...
Review:Tree search function TREE-SEARCH(problem,fringe)returns a solution,or failure fringeINSERT(MAKE-NODE(INITIAL-STATE[problem]),fringe) loop do if fringe is empty then return failure node-REMOVE-FRONT(fringe) if GOAL-TEST[problem]applied to STATE(node)succeeds return node fringeINSERTALL(EXPAND(node,problem),fringe) A strategy is defined by picking the order of node expansion Chapter 4.Sections 1-2 3 Review: Tree search function Tree-Search( problem, fringe) returns a solution, or failure fringe ← Insert(Make-Node(Initial-State[problem]),fringe) loop do if fringe is empty then return failure node ←Remove-Front(fringe) if Goal-Test[problem] applied to State(node) succeeds return node fringe ← InsertAll(Expand(node, problem),fringe) A strategy is defined by picking the order of node expansion Chapter 4, Sections 1–2 3
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有