经典算法研究系列:一、A*搜索算法(二)

2014-11-23 21:45:59 · 作者: · 浏览: 25
et
add x to closedset //x放入

CLSOE表
for each y in neighbor_nodes(x)
if y in closedset
continue
tentative_g_score := g_score[x] + dist_between(x,y)

if y not in openset
add y to openset
tentative_is_b