文件名称:8数码A算法
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:13.28kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计说明:1。数据结构和表示:程序用1、2、3、4分别表示将右、上、左、下的数字块移动到空格之中。采用典型的树+链表结构,每种局面产生一个BoardState类。出于避免走法顺序列表被过多复制的考虑,在树结构中保存局面的继承关系。每种新的局面产生后,引用估值函数产生f的值,再根据大小将其插入链表之中,以便实现“优先展开f值小的节点”。Solve()函数在成功解决问题之后保存一个走法序列供输出并返回零,而失败则返回失败处的节点层数。(具体的判断方法见后文)-Design Notes : 1. Data structure and said : 1,2,3,4 procedures used were said to the right, and left, The figure moved to the block among the blanks. A typical tree Chain structure, each have a situation BoardState category. For France order to avoid excessive copying the list was, in consideration of the tree structure to preserve the situation in relation to the succession. Each of the new situation after the election, have cited valuation function f value, in accordance with the size of its insertion Chain, in order to achieve the "priority start small f value of the node." Solve () function in the successful solution of the problem after a law to preserve sequence for output and return to zero. and failure to return to the failed node floors. (Specific judgment method, see be
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8数码A算法/8p.cpp
8数码A算法/8p.dsp
8数码A算法/8p.dsw
8数码A算法/8p.h
8数码A算法/说明.doc
8数码A算法/8p.ncb
8数码A算法/Debug
8数码A算法/8p.plg
8数码A算法/8p.opt
8数码A算法
www.dssz.com.txt
8数码A算法/8p.dsp
8数码A算法/8p.dsw
8数码A算法/8p.h
8数码A算法/说明.doc
8数码A算法/8p.ncb
8数码A算法/Debug
8数码A算法/8p.plg
8数码A算法/8p.opt
8数码A算法
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.