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

Prolog实现8-puzzle

于 2023-07-26 发布 文件大小:255.02 kB
0 122
下载积分: 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 个回复

  • 8051 串口 循环缓冲区
    串口C程序 , STC mcu ,循环缓冲区, 解决串口丢数据问题, 实际工程中很稳定, 接收时, 在中断中接收, 写入循环缓冲区, 主程序去循环缓冲区中取数据。 
    2022-02-11 15:18:41下载
    积分:1
  • FFT
    详细讲解了FFT的原理,使一些基础知识,不过还是非常实用的-FFT
    2022-06-27 21:19:02下载
    积分:1
  • 判断点是否处于多边形内的最佳方(适用于任意多边形包括凹凸边形)
        本例子在VC6.0上编写了判断点是否处于多边形内的最佳方法,它和一般的叉乘判别法,角度判别法,面积判别法不同,它适用于任意多边形(包括凹凸边形)。它的基本思想就是:假设需要判定的点P,通过点P水平向左做射线,如果P在多边形内部,那么这条射线与多边形的交点必为奇数,反之,交点个数为偶数。所以,我们可以顺序考虑多边形的每条边,求出交点的总个数。当然,存在一些特殊情况,例如射线刚好和多边形端点相交。对于一些特殊情况,算法也有所考虑,并一一解决。具体见算法里的注释即可。
    2022-01-31 11:10:31下载
    积分:1
  • 验证hilbert矩阵是病态矩阵
    验证hilbert矩阵是病态矩阵-Authentication is a pathological matrix matrix hilbert
    2023-02-28 04:50:03下载
    积分:1
  • 一个创建随机数的程序
    一个创建随机数的程序-create a random number of procedures
    2022-05-30 18:25:51下载
    积分:1
  • leetcode部分源码
    本人编写的leetcode部分算法源码,为了下载matlab程序,上传了。。。。。。。。。。。。。。。
    2022-01-31 09:42:08下载
    积分:1
  • FFT by C++, with source file
    快速傅立叶变换 采用c++编程 有源代码-FFT by C++, with source file
    2022-07-22 05:09:18下载
    积分:1
  • dynamic control of power system
    The main topic covered is frequency control in power systems. The needed models are derived and the primary and secondary frequency control are studied. A detailed model of the synchronous machine, based on Park’s transformation, is also included. The excitation and voltage control of synchronous machines are briefly described. An overview of load models are also given
    2022-01-31 07:57:11下载
    积分:1
  • 用Csharp语言实现KMP查找匹配测试正确很快
    用Csharp语言实现KMP查找匹配算法测试正确算法很快-Csharp language by KMP matching algorithm to find the correct algorithm to test soon
    2022-02-02 16:29:45下载
    积分:1
  • ARM汇编中值滤波
    中值滤波是基于排序统计理论的一种能有效抑制噪声的非线性信号处理技术,中值滤波的基本原理是把数字图像或数字序列中一点的值用该点的一个邻域中各点值的中值代替,让周围的像素 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-07-12 06:45:04下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载