搜索资源列表
8数码A算法
- 设计说明:1。数据结构和表示:程序用1、2、3、4分别表示将右、上、左、下的数字块移动到空格之中。采用典型的树+链表结构,每种局面产生一个BoardState类。出于避免走法顺序列表被过多复制的考虑,在树结构中保存局面的继承关系。每种新的局面产生后,引用估值函数产生f的值,再根据大小将其插入链表之中,以便实现“优先展开f值小的节点”。Solve()函数在成功解决问题之后保存一个走法序列供输出并返回零,而失败则返回失败处的节点层数。(具体的判断方法见后文)-Design Notes : 1. Da
HeapsortCodes
- Heapsort 1.A heap is a binary tree satisfying the followingconditions: -This tree is completely balanced. -If the height of this binary tree is h, then leaves can be at level h or level h-1. -All leaves at level h are as far to the left as po
MINIMALpATH
- A shortest path tree, in graph theory, is a subgraph of a given (possibly weighted) graph constructed so that the distance between a selected root node and all other nodes is minimal. It is a tree because if there are two paths between the root node
mpnn_Nearest-neighbor-library
- motion planning strategies for finding the nearest node in the search tree.
treeExplore
- 机器学习算法,树剪枝算法,预剪枝,后剪枝,模型树的叶结点生成-Machine learning algorithms, tree pruning algorithm, pre-pruning, pruning, tree leaf node model generation
ID3
- ID3算法流程如下: 1.如果节点的所有类标号相同,停止分裂; 2.如果没有feature可供分裂,根据多数表决确定该节点的类标号,并停止分裂; 3.选择最佳分裂的feature,根据选择feature的值逐一进行分裂;递归地构造决策树。-ID3 algorithm process is as follows: 1. If the node is the same for all class label, stop dividing 2. If there is no featur
一字棋
- 井字棋 α-β剪枝算法 在简单的游戏中,能够从当前游戏状态出发,搜索游戏的博弈树并确定最优行动方案的算法是存在的。其中最有名的算法就是极小极大算法。对于简单的双人游戏,极小极大算法很有用。它是在轮流行动的游戏中选择最好的行动的一种方法。 在博弈树中的每一个结点(一个结点表示一个可能的行动方案)都可以保存一个值,该值用来定义对应行动在帮助玩家获胜方面的优良程度。因此,对于一个确定的结点,其子结点都有一属性来定义对应行动的相对优良程度。 井字棋其实就是三子棋(和五子棋类
