AgPro

导航

2010年6月21日 #

A*算法解八数码(九宫格)问题

摘要: //POJ-1077 #include #include using namespace std; const int M = 362880; struct node { int state;//当前点表示方式 char action;//到达当前点的动作 int table;//0表示未访问,1表示在open表,2表示在close表,用于hash判重 int h;//h表示当前点到... 阅读全文

posted @ 2010-06-21 16:03 AgPro 阅读(1910) 评论(0) 推荐(0) 编辑