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

Prolog实现8-puzzle

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

  • primepalindrome,找回文素数的一个不错的实现
    primepalindrome,找回文素数的一个不错的算法实现-primepalindrome, retrieve the text of a good prime number algorithm
    2022-05-27 12:39:36下载
    积分:1
  • Lifitime tracer. ***************************************************** Example...
    Lifitime tracer. *** *** *** *** *** *** *** *** ***** Example: #include void foo() { TRACE_LIFETIME usleep(100000) } void main() { foo() } *** *** *** *** *** *** *** *** *** See lifetimes.log: FUNC: void foo(), AV TTL: 00000xxxxx us (main.cpp, 000xxx) TTL: 00000xxxxx us (THREAD ID: 0000xxxx) ****************************************************** Explanation of newly created lifetimes.log: FUNC - function, whose lifetime we measured AV TTL - mean (average) spent time of all functions calls TTL - time spent on each function call THREAD ID - thread that called a function. ***************************************************** Description: - was written for QT project - multithreaded support (Loki::Singleton has multithreaded sync support) **************************************************** Dependencies: - QT - Loki (A. Alexandrescu) -Lifitime tracer. ****************************************************
    2022-02-13 17:25:56下载
    积分:1
  • kalman滤波的白球跟踪
    基于卡尔曼滤波的白球跟踪程序,白球为运动球,绿球为基于kalman滤波跟踪的球,红球为观测球,对kalman的理解有较好的帮助
    2022-03-13 18:17:09下载
    积分:1
  • 最小生成树绝对可以运行的程序
    最小生成树绝对可以运行的程序-absolute minimum spanning tree can run the procedure
    2022-08-13 18:23:32下载
    积分:1
  • 高斯消元求逆
    此矩阵用高斯消元法求二元域矩阵H的逆矩阵,此算法不需要H时满秩矩阵,对于满秩矩阵,H的逆矩阵G为[P,I],对于不满足矩阵,P的最后列为全零列,本算法适合刚进入编码领域的人,不知如何求生成矩阵,特别是当生成矩阵的为非满秩矩阵的时候可用。
    2022-03-16 20:48:21下载
    积分:1
  • PSO在室内定位系统中的应用
    资源描述室内定位系统,是用于在较大或复杂的建筑物内完成对目标物进行定位的实 时系统,其目标物包括人和物品。该系统的核心包括两个部分:硬件系统和软件 系统。其基本思想是利用算法根据参照点的坐标来确定目标物的坐标,从而实现 目标的定位。本论文的主要目标就是研发用于提高室内定位系统性能的软件系统。
    2022-03-22 19:39:42下载
    积分:1
  • 数码管静态显示
    #include#define uchar unsigned char#define uint unsigned intsbit dula=P2^6;sbit wela=P2^7;uchar num;uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};void delay(uint);void main(){
    2023-06-14 07:15:04下载
    积分:1
  • 基于vc6.0的一个计非方阵矩阵的广义逆矩阵的,输入要求为矩阵的指针表示,矩阵的行数和列数,函数返回的是矩阵的广义逆矩阵,附带结果的验证...
    基于vc6.0的一个计算非方阵矩阵的广义逆矩阵的算法,输入要求为矩阵的指针表示,矩阵的行数和列数,函数返回的是矩阵的广义逆矩阵,附带结果的验证-Vc6.0 based on a calculation of non-square matrix of the generalized inverse matrix of the algorithm, input requirements for the indicator matrix, said matrix of rows and columns, are the return function of the generalized matrix inverse matrix, with the results of the verification
    2022-11-10 10:30:04下载
    积分:1
  • 经典之换位和工作安排
    经典算法之换位和工作安排-classic algorithms transposition and organization of work
    2022-07-26 11:58:56下载
    积分:1
  • engineering calculation frequently used vc numerical algorithm for the numerical...
    工程计算中经常用到的数值vc算法,对于进行数值模拟的网友很有用-engineering calculation frequently used vc numerical algorithm for the numerical simulation of netizens useful
    2023-04-01 00:45:03下载
    积分:1
  • 696518资源总数
  • 105540会员总数
  • 37今日下载