登录
首页 » 算法 » 8数码难题 深、广、a*

8数码难题 深、广、a*

于 2022-03-13 发布 文件大小:29.67 kB
0 201
下载积分: 2 下载次数: 1

代码说明:

8数码难题 深、广、a*-eight deep problem, Kwong, a*

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

发表评论

0 个回复

  • 一、前言 24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为...
    一、前言 24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为输。 二、分析 用计算机来算这个题,搜索速度当然有很大优势,我编程喜欢考虑通用一点,不限制输入数量和结果数,甚至不限制运算符数量。这样组合数就很大,如果输入数比较多,则搜索时间会非常长。 我用两个方法来提高搜索速度:一、是大家都能考虑到的重复搜索问题,比如1,2,3和2,3,1所有的组合情况是相同的,我只搜索使用递增序的数组,则可以降低一个组合数的数量级别;二、使用动态规划中的备忘录方法,比如你计算出2和3所有可能的计算结果,则他们与4结合的时候,要用到,与1结合的时候,也要用到,使用备忘录,可以只计算一次,大大降低运算复杂度。 三、设计 整体设计:分别设计4个类:游戏、表达式、运算、分数,各司其责,结构清晰,易于扩展。 -First, the preamble 24-point game is a common game, give the title are four integer requiring answer within a specified period of time in a four calculations give the expression, just use that the integral of the time, results for the 24, beyond the time to lose. Second, analysis Use computers to count the title, the search speed of course, there is a great advantage, I enjoy taking generic programming that does not restrict the importation of the volume and the number of results, and even limiting the number of operators. So on a large number of combinations, if you
    2022-04-21 18:17:05下载
    积分:1
  • MarchingCubes算法的VTK实现(适合初学者)
    MarhingCubes算法由二维断层图像序列构成的三维数据提供,在上下相邻的两层图像上取相邻的4 个点构成一个立方体体元。对体数据中的所有体元进行逐个遍历,对于每个被处理的体元,通过与给定的阈值进行对比确定等值点的位置,再通过线性插值的方法计算等值点坐标和法向量,最后以三角面片的方式连接成等值面显示。VTK移动立方体
    2022-03-16 05:19:38下载
    积分:1
  • 一个演示正二十面体与球的(OR)组合(AND)组合(SUB)组合等的工程,编译,运行都需要glut...
    一个演示正二十面体与球的(OR)组合(AND)组合(SUB)组合等的工程,编译,运行都需要glut-a demonstration is icosahedron with the ball (OR) Portfolio (AND) Combination (SUB) combination of engineering , compile, run need glut
    2022-03-20 04:45:14下载
    积分:1
  • Blackjack C语言实现
    用C语言实现blackjack游戏 游戏规则如下(法语)  La partie oppose tous les joueurs contre la banque. Le but est de battre le croupier sans dépasser 21 (voire la valeur des cartes ci-après). Dès qu’un joueur fait plus que 21, il est éliminé de la partie. La valeur des cartes est établie comme suit : – de 2 à 10 : valeur nominale de la carte ; – chaque figure : 10 points ; – l’As : 1 point ou 11 points au choix du joueur. Un Blackjack est composé d’un As et d’une carte ayant pour valeur 10 (10, Valet, Daome ou Roi). Cependant, si le joueur atteint les 21 points en 3 cartes ou plus on compte 21 points et non pas Blackjack. Au début de la partie le croupier distribue une carte face visible à chaque joueur et tire une
    2022-01-25 22:14:08下载
    积分:1
  • 数据结构
    资源描述c语言实现的数据结构的源代码,很全很强大
    2022-05-26 03:32:50下载
    积分:1
  • 自由始端和终端的动态规划,求指标函数最小值的逆序算法递归。...
    自由始端和终端的动态规划,求指标函数最小值的逆序算法递归。-The free end of the beginning and end dynamic programming, the minimum value of the reverse index function request recursive algorithm.
    2022-08-26 08:23:31下载
    积分:1
  • 极限学习机
    ELMmetlab算法实现。特性:1.需要的数学模型简单,学习速度快;2.能获得全局最优解;3.具有良好的泛化性能。泛化性能是指机器学习算法对新样本的适应性。Extreme Learning Machine极限学习机器神经网络研究中的一种算法,是一种泛化的单隐层前馈神经网络(Single-hidden layer feedforward network)。
    2023-04-30 17:15:03下载
    积分:1
  • 在一个面向对象的方式实现一个基本粒子群算法的C++程序…
    a basic c++ program for implementing in an object oriented way a particle swarm algorithms for optimisation
    2023-06-07 17:45:02下载
    积分:1
  • 主要是应用VC进行傅立叶变换和反变换的程序,主要采用快速傅立叶方法,因为傅立叶变换的时间很长。...
    主要是应用VC进行傅立叶变换和反变换的程序,主要采用快速傅立叶方法,因为傅立叶变换的时间很长。-VC primarily used for Fourier transform and inverse transform process, the main use of fast Fourier methods, because the Fourier transform of the time very long.
    2023-05-09 05:30:03下载
    积分:1
  • sift算法源码实现
    sift算法的C++实现。需要配置opencv库。配置完后就能直接运行了。里面包含了特征点检测,特征点滤除,图像拼接融合。opencv版本需要2.3.0以上。程序调成已经成功。
    2023-06-22 09:55:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载