2012年9月25日

AI_八数码

摘要: #includetypedef struct { int parent; int index; int Grid[9]; int H;//启发函数值}State;State S,T;//起始态,目标态State OPEN[2000];//队列-----考察已考察过的状态State CLOSE[2000];//--------存储待考察的状态int OPhead=0,OPtail=0,openlen=2000;int CLhead=0,CLtail=0,closelen=2000;void readdata();void init();int search();... 阅读全文

posted @ 2012-09-25 21:42 IThinktan 阅读(180) 评论(0) 推荐(0) 编辑

导航