📄 map.pl
字号:
% A road-map path-finding problem
% The interesting probem is path from s to t
s( X, Y, C) :- c( X, Y, C); c( Y, X, C).
c( s, a, 2). c( a, b, 2). c( b, c, 2). c( c, d, 3).
c( d, t, 3). c( t, g, 2). c( g, f, 2). c( f, e, 5).
c( e, s, 2).
goal(t).
% heuristic estimates are the direct distances to t
h( s, 7). h( a, 5). h( b, 4). h( c, 4). h( d, 3).
h( e, 7). h( f, 4). h( g, 2). h( t, 0).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -