CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - prolog p
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - prolog p - List
[
Other
]
pathfinding
DL : 0
prolog 找路例子程序: === === === Part 1-Adding connections Part 2-Simple Path example | ?- path1(a,b,P,T). will produce the response: T = 15 P = [a,b] ? Part 3 - Non-repeating path As an example, the query: ?- path2(a,h,P,T). will succeed and may produce the bindings: P = [a,depot,b,d,e,f,h] T = 155 Part 4 - Generating a path below a cost threshold As an example, the query: ?- path_below_cost(a,[a,b,c,d,e,f,g,h],RS,300). returns: RS = [a,b,depot,c,d,e,g,f,h] ? RS = [a,c,depot,b,d,e,g,f,h] ? no ================================== -prolog to find a way examples : ==================================== Part 1-Adding connections Part 2 - Simple Path example | - path1 (a, b, P, T). will produce the response : T = 15, P = [a, b] Part 3-Non-repeating path As an example, the query :-path2 (a, h, P, T). will succeed and may produce the bindings : P = [a, depot, b, d, e, f, h] T = 155 Part 4-Generating a path below a cost threshold As an example, the query :-path_below_cost (a, [a, b, c, d, e, f, g, h], RS, 300). returns : RS = [a, b, depot, c, d, e , g, f, h] RS = [a, c, depot, b, d, e, g, f, h] no =====================
Date
: 2008-10-13
Size
: 1.8kb
User
:
Fa
[
Other
]
pathfinding
DL : 0
prolog 找路例子程序: === === === Part 1-Adding connections Part 2-Simple Path example | ?- path1(a,b,P,T). will produce the response: T = 15 P = [a,b] ? Part 3 - Non-repeating path As an example, the query: ?- path2(a,h,P,T). will succeed and may produce the bindings: P = [a,depot,b,d,e,f,h] T = 155 Part 4 - Generating a path below a cost threshold As an example, the query: ?- path_below_cost(a,[a,b,c,d,e,f,g,h],RS,300). returns: RS = [a,b,depot,c,d,e,g,f,h] ? RS = [a,c,depot,b,d,e,g,f,h] ? no ================================== -prolog to find a way examples : ==================================== Part 1-Adding connections Part 2- Simple Path example |- path1 (a, b, P, T). will produce the response : T = 15, P = [a, b] Part 3-Non-repeating path As an example, the query :-path2 (a, h, P, T). will succeed and may produce the bindings : P = [a, depot, b, d, e, f, h] T = 155 Part 4-Generating a path below a cost threshold As an example, the query :-path_below_cost (a, [a, b, c, d, e, f, g, h], RS, 300). returns : RS = [a, b, depot, c, d, e , g, f, h] RS = [a, c, depot, b, d, e, g, f, h] no =====================
Date
: 2025-07-13
Size
: 2kb
User
:
Fa
[
AI-NN-PR
]
kejian
DL : 0
人工智能开发工具Visual Prolog 课件-Artificial intelligence development tools, Visual Prolog Courseware
Date
: 2025-07-13
Size
: 1.78mb
User
:
高村
[
Other
]
manual
DL : 0
manual for new P# tools, convert prolog to c# code
Date
: 2025-07-13
Size
: 87kb
User
:
jolia sot
[
AI-NN-PR
]
pie
DL : 0
prolog 智能推理机的实现代码,可编辑运行,欢迎大家交流与学习-This example demonstrates Prolog Inference Engine is a small Prolog Interpreter. It uses the standard Prolog syntax (K&M) and releases the most popular set of predicates.
Date
: 2025-07-13
Size
: 124kb
User
:
安准
[
Other Games
]
P
DL : 0
Prolog program for tower of hanoi problem
Date
: 2025-07-13
Size
: 1.28mb
User
:
speeed
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.