Swi-Prolog的安装
prolog吧
全部回复
仅看楼主
level 9
xlm🎅 楼主
转载自:https://mp.weixin.qq.com/s/cVhuibaXiCuUBTc-dX1Weg
来自微信公众号:人工智能Prolog
2020年01月17日 03点01分 1
level 2
We are given the following facts of travel information. Write a Prolog program that can answer the question like : Is it possible to travel from Valmont to Raglan using car, train, plane or their combination? i.e., input the question “travel(Valmont,raglan).” and the system should be able to output either “true” or “false”.
byCar(auckland,hamilton).
byCar(hamilton,raglan).
byCar(valmont,saarbruecken).
byCar(valmont,metz).
byTrain(metz,frankfurt).
byTrain(saarbruecken,frankfurt).
byTrain(metz,paris).
byTrain(saarbruecken,paris).
byPlane(frankfurt,bangkok).
byPlane(frankfurt,singapore).
byPlane(paris,losAngeles).
byPlane(bangkok,auckland).
byPlane(losAngeles,auckland).
2020年07月17日 03点07分 2
level 2
大佬会这道题吗?
2020年07月17日 03点07分 3
1