Termination Criteria for Bidirectional Search

后端 未结 4 1050
执念已碎
执念已碎 2020-12-15 04:27

According to most of the reading I have done, a bidirectional search algorithm is said to terminate when the \"forward\" and \"backward\" frontiers first intersect. However,

4条回答
  •  温柔的废话
    2020-12-15 05:08

    In an unweighted (unit cost) graph, bidirectional BFS has found the optimal solution when it hits the intersection, as Russell & Norvig themselves state on page 80 of the 2003 edition of ''AIMA'':

    Bidirectional search is implemented by having one or both of the searches check each node before it is expanded to see if it is in the fringe of the other search tree [...] The algorithm is complete and optimal (for uniform step costs) if both searches are breadth-first[.]

    (By "expanding a node", R&N mean generating the successors. Emphasis added.)

提交回复
热议问题