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

Prolog实现8-puzzle

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

  • 棋盘覆盖,不错的
    棋盘覆盖,不错的-chessboard coverage, good
    2022-03-22 07:38:21下载
    积分:1
  • 遗传
    本文详细介绍了采用遗传的计算机程序的执行 在寻求最佳讲座时间表发电机的算法 (气)。遗传算法理论是 覆盖着重点是雇用非遗传算子少完全编码系统。 此外探讨了领域的自动化的时间表。时间表被解释作为, 从根本上讲,日程安排放在它的约束。该程序,在 C 中写入 采用了更快地演化的修复战略。在简化的大学时间表 它一贯演变违反约束的问题免费的时间表。影响 改变的突变率和人口规模进行了测试。它是见过可能是遗传算法 通过修复策略,进一步将纳入改进和随时可扩展到 完整的时间表问题。附录包括整个源代码,该代码。
    2022-10-30 12:55:03下载
    积分:1
  • 图书管理系统
    在这个图书借阅管理系统,我主要实现了两大功能:  (1)图书管理(增加图书、查询图书、删除图书、图书借阅、还书);  (2)会员管理(增加会员、查询会员、删除会员、借书信息);
    2022-01-30 20:13:11下载
    积分:1
  • 面向物联网的无线传感器网络综述
    资源描述摘要:在分析无线传感器网络国内外研究现状及技术成熟度的基础上,从技术层面阐述了无线传感器网络与物联 网之间的相互关系,总结了无线传感器网络系统执行所需要的信息采集系统设计、网络服务支持和网络通信协议设 计等关键技术,说明了无线传感器网络未来发展所面临的挑战,并提出了面向物联网的无线传感器网络发展新思路。 关键词:无线传感器网络;物联网;信息采集系统;网络服务支持;网络通信协议
    2022-02-02 04:57:36下载
    积分:1
  • 排列组合的第归
    排列组合的第归算法-permutations and combinations of naturalization Algorithm
    2023-06-22 07:10:03下载
    积分:1
  • 后的二叉树(递归)
    二叉树的后序算法(递归)-after the sequence of binary tree algorithm (recursive)
    2022-09-15 21:25:03下载
    积分:1
  • ,找到了古代所有素数的
    the Sieve of Eratosthenes,ancient algorithm for finding all prime numbers up to a specified integer
    2022-10-30 23:35:02下载
    积分:1
  • 晶闸管设计的徐传镶,设计长基区,决定了晶闸管耐压设计,是一个优化程序。...
    晶闸管设计的徐传镶法,设计长基区,决定了晶闸管耐压设计,是一个优化程序。-Thyristor Xu Chuan inlaid design method, design a long base, determines the thyristor voltage design, is an optimization process.
    2023-05-28 08:15:03下载
    积分:1
  • 这个Matlab的m代码解决了薛定谔方程,沿着带宽频率和相位偏移,显示三维图像。...
    这个Matlab的m代码解决了薛定谔方程,沿着带宽频率和相位偏移,显示三维图像。-The Matlab m-code to solve the Schrodinger equation along the bandwidth of the frequency and phase offset, showing three-dimensional image.
    2022-04-07 08:51:00下载
    积分:1
  • 任意精度计的实现
    任意精度计算的实现-arbitrary accuracy, the realization
    2022-08-24 02:11:43下载
    积分:1
  • 696518资源总数
  • 105678会员总数
  • 22今日下载