搜索资源列表
TowersOfHanoi
- 汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C -Hanoi Tower! ! ! Simulate the movement of the Towers of Hanoi puzzle Bonus is pos
EightPuzzle
- Solve the 8-puzzle problem using A * algorithme. Input: Program reads start state and goal state and heuristic (N or S) from EightPuzzle.INP file.0 representing blank. There are 2 Heuristic: 1. N: Number of misplaced tiles 2. S: Sum o
8
- 用A*启发式算法解决八数码问题,用纯C实现-using A* algorithm to solve Eight-puzzle
n-puzzle
- n-puzzle (8-puzzle, 15-puzzle, 24-puzzle) solution using A* algorithm. i have used 2 pass for reducing memory consumption by half. i will post it also on my blog http://rooparam.blogspot.com-n-puzzle (8-puzzle, 15-puzzle, 24-puzzle) solution using A*
Mysteryproblem
- 重排九宫是一个古老的单人智力游戏。据说重排九宫起源于我国古时由三国演义故事“关羽义释曹操”而设计的智力玩具“华容道”,后来流传到欧洲,将人物变成 数字。原始的重排九宫问题是这样的:将数字1~8按照任意次序排在3×3的方格阵列中,留下一个空格。与空格相邻的数字,允许从上,下,左,右方向移动到 空格中。游戏的最终目标是通过合法移动,将数字 1~8 按行排好序。在一般情况下,n2-1 谜问题是将数字 1~n2-1 按照任意次序排在n×n的方格阵列中,留下一个空格。允许与空格相邻的数字从上,下,左,右
055523232007
- program to give one possible solution of the 8 queens puzzle because I was bored... and because after that, I was even more bored, I decided to extend it to an N queens version. Since this is my first contribution here, I hope you guys take a look
puzzle
- 能输入一个N*M矩阵代表迷宫分布,指定入口出口后,程序自动搜索从入口到出口的路径。-You can input a N*M matrix to represent a maze ,define an entrance and exit,this program will search the way from entrance to exit .
Puzzle
- 人工智能课程,N数码问题java代码实现。-Artificial Intelligence course, N digital issue java code.
primer
- 一个小的代码:// stack堆栈中保留两个数据(皇后所在的行和列),总共有八个皇后 // 住要特别注意入栈和出栈的顺序。 最后输出计算的结果。-The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no
3_cubic_puzzle
- 立方数码问题(8数码问题的三维拓展) 使用C/C++实现4个算法,即,使用启发函数h1(n)的A*算法:Astar_h1.cpp,使用启发函数h2(n)的A*算法:Astar_h2.cpp,使用启发函数h1(n)的IDA*算法:IDAstar_h1.cpp,使用启发函数h2(n)的IDA*算法:IDAstar_h2.cpp。输出文件名与算法对应。以h1为启发函数的A*算法输出到output_Ah1.txt;以h2为启发函数的A*算法输出到output_Ah2.txt;以h1为启发函数的IDA
启发式搜索A算法
- 启发式搜索的定义、估价函数和算法过程,并利用A*算法求解N数码难题,理解求解流程和搜索顺序(The definition, evaluation function and algorithm process of heuristic search, and A* algorithm is used to solve the N digital puzzle, and the solution flow and search order are understood)