人工智能技术简明教程 廉师友 第3章 图搜索与问题求解新.pptVIP

  • 50
  • 0
  • 约1.62万字
  • 约 107页
  • 2015-12-17 发布于广东
  • 举报

人工智能技术简明教程 廉师友 第3章 图搜索与问题求解新.ppt

/*状态图搜索通用程序*/ DOMAINS state=领域说明 %例如:state=symbol DATABASE-mydatabase    open(state,integer)  %用动态数据库实现OPEN表   closed(integer,state,integer) %和CLOSED表    res(state)    open1(state,integer)   min(state,integer)   mark(state)    fail_ CLAUSES search(StartingCity,CitySum): - retractall(_,mydatabase),assert(closed(0,st([],0),0,0)), assert(open(st([StartingCity],0),0,0,0)),  assert(mark(StartingCity,CitySum)), repeat, searching,!. searching: -  open(State,BackPointer,Gx,_), retract(open(State,_,_,_)),  closed(No,_,_

文档评论(0)

1亿VIP精品文档

相关文档