虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 其他 > prolog 找路例子程序: === === === === === === Part 1-Adding connections Part 2-Simple Path example

prolog 找路例子程序: === === === === === === Part 1-Adding connections Part 2-Simple Path example

  • 资源大小:3 K
  • 上传时间: 2015-04-24
  • 上传用户:wendaoysh
  • 资源积分:2 下载积分
  • 标      签: Part connections example prolog

资 源 简 介

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 ==================================

相 关 资 源

您 可 能 感 兴 趣 的