FRINGE検索アルゴリズムの擬似コードで1行の解釈に問題があります。行は、次のコードでは第3位である:私はその構文が言っていることを把握することはできませんhttps://en.wikipedia.org/wiki/Fringe_searchFRINGE検索擬似コードの理解
:
init(start, goal)
fringe F = s
cache C[start] = (0, null)
flimit = h(start)
found = false
while (found == false) AND (F not empty)
fmin = ∞
for node in F, from left to right
(g, parent) = C[node]
f = g + h(node)
if f > flimit
fmin = min(f, fmin)
continue
if node == goal
found = true
break
for child in children(node), from right to left
g_child = g + cost(node, child)
if C[child] != null
(g_cached, parent) = C[child]
if g_child >= g_cached
continue
if child in F
remove child from F
insert child in F past node
C[child] = (g_child, node)
remove node from F
flimit = fmin
if reachedgoal == true
reverse_path(goal)
擬似コードは、このwikiの記事から取りました。助けてくれてありがとう!
ありがとうございました!申し訳ありませんが、私はとても長い間学校に行きました! –