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

Prolog实现8-puzzle

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

  • 填充矩阵(从外向内顺序填充自然数)
    填充矩阵(从外向内顺序填充自然数)-filled matrix (from the outside in order to fill natural number)
    2022-11-16 16:05:03下载
    积分:1
  • 基于蚁群的动态最优路径规划
    基于蚁群算法的动态最优路径规划,信号处理,图像处理,程序源代码
    2023-08-19 20:35:02下载
    积分:1
  • 用支持向量机(SVM)实现分类与函数回归的源代码。内有实例,依湖芦画瓢即可。...
    用支持向量机(SVM)实现分类与函数回归的源代码。内有实例,依湖芦画瓢即可。-Using support vector machine (SVM) classification and function to achieve the reunification of the source code. There are examples, according to Lake Lo paintings can ladle.
    2022-06-15 21:49:41下载
    积分:1
  • calculator,used for computing
    calculator,used for computing
    2022-03-29 18:06:45下载
    积分:1
  • 偶极天线的Fortran代码
    fortran code of dipole antenna
    2022-03-24 20:19:53下载
    积分:1
  • 有限域上计的基本库
    1引言  这是一种快速Galois域的库,并且所有的源文件是自由软件;这个库有一些显著的不同与以往的Galios场库进行比较。  1)这个库可以使用在Windows平台和Linux平台,C和C++的支持。  2)与以往的研究相比,在这一块的代码非常简洁,代码量小于150线为1/3-1/5以前的作品。  3)所有的Galois域的功能的操作与宏实现的,所以计算速度是非常快的。  2如何使用它。&nbs
    2022-06-19 21:05:29下载
    积分:1
  • 64位数的计,是科学计类的
    64位数的计算,是科学计算类的-64 median is calculated kind of scientific computing
    2022-03-26 03:47:58下载
    积分:1
  • 遗传代码
    《optimization using nondominated sorting genetic algorithms》的论文中提出的。该算法在快速找到Pareto前 沿和保持种群多样性方面都有很好的效果,不过在这么多年的应用中也出现了如下的一些问题: 1。非支配排序的时NSGA2主要是对NSGA算法的改进。NSGA是N. Srinivas 和 K. Deb在1995年发表的一篇名为 《Multiobjective function间复杂的很大,为O(MN3)。其中M为目标函数的数量,N为种群规模。 2。不支持精英策略。精英策略在保持好的个体及加速向Pareto前沿收敛方面都有很好的表现。 3。需要自己指定共享参数。该参数将对种群的多样性产生很大的影响。 NSGA2算法将在以下方面进行改进: 1。快速的非支配排序     在NSGA进行非支配排序时,规模为N的种群中的每个个体都要针对M个目标函数
    2022-02-02 20:48:20下载
    积分:1
  • 利用只读存储器计参数字节
    Calculate Parameter Byte using ROM-BIOS
    2022-04-07 19:31:25下载
    积分:1
  • 曲线拟合小工具,包括对数拟合,多项式拟合,直线拟合,指数拟合,乘幂拟合...
    曲线拟合小工具,包括对数拟合,多项式拟合,直线拟合,指数拟合,乘幂拟合-Curve fitting of small tools, including on the number of fitting, polynomial fitting, straight fitting, exponential fitting, by fitting power
    2022-02-04 09:17:49下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载