登录
首页 » 算法 » Prolog实现8-puzzle

Prolog实现8-puzzle

于 2023-07-26 发布 文件大小:255.02 kB
0 143
下载积分: 2 下载次数: 1

代码说明:

he 8-puzzle will be represented by a 3x3 list of lists positions where the empty box will be represented by the value 9, as shown below: [[9,1,3],[5,2,6],[4,7,8]] Possibility Solution: Only half of the initial positions of the 8-puzzle are solvable. There is a formula that allows to know from the beginning if you can solve the puzzle.To determine whether an 8-puzzle is solvable, for each square containing a value N is calculated how many numbers less than N there after the current cell. For example, to the initial status

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 欧拉算法
    以近似初值问题的解决方案: * Y" = F(T,Y),A < = T < = B,Y(A) = 阿尔法, * 在 N + 1 间隔相等的点在区间 [A,B]。 * * 输入: 终结点 A、 B ;阿尔法最初的状况 ;整数 N。 * * 输出: 逼近到 (N + 1) 在 Y W 值 T。
    2022-07-26 00:49:47下载
    积分:1
  • 基于2.4G通信采集温度
    应用背景  51单片机的必敲程序之一,通过使用2.4G模块和DS18B20可以学习到单总线通信和SPI通信,由浅入深地学习51单片机  关键技术通过DS18B20采集温度数据,然后经过2.4G模块发送到主机显示温度值
    2022-12-26 15:05:03下载
    积分:1
  • 数值计算,表达式求值, 如计算3 + 2 * ( 3 + 2) / 5 + 8 + Sin( pi() / 180 * 30 ) + 1 + 2 ^ 10, 可...
    数值计算,表达式求值, 如计算3 + 2 * ( 3 + 2) / 5 + 8 + Sin( pi() / 180 * 30 ) + 1 + 2 ^ 10, 可自定义函数, 采用递归算法-numerical calculation, in the expression evaluates, as calculated 3 2* (2)/5 8 Sin (pi ()/180* 30) 1 2 ^ 10,- defined functions using recursive algorithm
    2022-01-26 05:01:19下载
    积分:1
  • GA-rbf神经网络
    基于遗传算法的径向基神经网络matlab代码实现
    2022-06-03 11:57:40下载
    积分:1
  • N_queen 问题的遗传算法
    这是一个简单的代码为 N 皇后 problem.and 是有用对他们新是在 matlab 环境中的人来说,我相信这是对初学者很有帮助。
    2022-08-18 11:30:23下载
    积分:1
  • 任意精度的数学库
    任意精度的数学库 - Free precision mathematics storehouse
    2022-01-26 03:10:09下载
    积分:1
  • BM匹配算法汇编实现
    BM匹配算法汇编实现-BM algorithm to achieve compilation
    2023-04-14 07:15:03下载
    积分:1
  • C语言共享内存的方法
    资源描述C语言两个进程间共享内存的方法,当两个进程间要相互通信时,可以通过消息发送或者文件共享的方法,但这俩个方法前者不能确保消息能接收到,后者效率不高。而共享内存的方法将这二者的优势结合在一起。
    2023-06-11 01:40:03下载
    积分:1
  • 井字脚趾
    应用背景一个小的井字脚趾由我´游戏。例: ;#包括
    2022-03-22 19:02:57下载
    积分:1
  • 马尔可夫链算法,包括子程序和调用主程序示例,用C++编写
    马尔可夫链算法,包括子程序和调用主程序示例,用C++编写-Markov chain algorithm
    2023-04-30 02:20:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载