Курсовая работа: Экспертная система для решения задачи о коммивояжере
list=s*
database
db_path(s,s,list,i)
predicates
path(s,s,list,i)
path1(s,list,i,list,i)
member(s,list)
arca(s,s,i)
db0(s,s)
db(s,s)
run(s,s)
start
goal
start.
clauses
start:-makewindow(1,7,7,"Expert System",1,3,22,71),clearwindow,
write("Enter the name of cities"),nl,
write("The first city: "), readln(First),nl,
write("The second city: "), readln(Second),nl,
run(First,Second),readchar(_).
arca (a,b,1).
arca(a,c,1).
arca(b,e,1).
arca(b,d,1).
arca(c,d,1).
arca(c,g,1).
arca(c,f,1).
arca(d,e,1).
arca(e,f,1).