登录
首页 » 算法 » BFS 算法

BFS 算法

于 2022-01-25 发布 文件大小:3.44 kB
0 171
下载积分: 2 下载次数: 1

代码说明:

BFS 算法的实现在 c / c + +。我t 也打印派生的最短路径的路径

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

发表评论

0 个回复

  • Pequeno 编辑器 de 缔约国
    初 pequeno exemplo contém procedimentos de como trabalhar com 富文本 usando seus recursos 德尼格罗、 sublinhar 等
    2022-12-31 01:30:03下载
    积分:1
  • odd N bands Demon Lineup : N
    奇数N 阶魔方阵问题: 奇数N 阶魔方阵的构造规则如下: 1、在第一行的正中间填入1; 2、如果左上角能够移动,则往左上角填入后继的数;如果左上角不 能移动,则顺移到该列最下方左边的一列中最靠近该列的位置; 3、如果左上角不能移动,同时在该列位置的最下方左边最靠近的位 置处也不能填入数,则往该位置的上一行的最右边的位置处填入 后继数; 4、每次尽可能地往左上角填数,如果发现左上角已经填满了数,则 从当前填的数的位置下方填上后继数。 要求: 无。 输入: 用户从键盘任意输入一个正奇数。 输出: 打印出该魔方阵。-odd N bands Demon Lineup : N-odd magic Lineup Construction Rules are as follows : 1, the first line is the middle of a preference; Two, if the upper left corner to Mobile, the successor to fill in the upper left; If the upper left corner, unable to move, with the move out of the bottom of the left one of the closest out of position; three, if the upper left corner, unable to move, while in the position shown in the bottom left nearest location Department has not entered a few, to the position of the party on the right side of the positions filled successor; 4, each possible to fill the upper left corner, if fill the upper left corner, has found a few, from the current fill several positions to fill in the bottom subsequent few. Requ
    2022-01-21 19:39:47下载
    积分:1
  • 后的二叉树(递归)
    二叉树的后序算法(递归)-after the sequence of binary tree algorithm (recursive)
    2022-09-15 21:25:03下载
    积分:1
  • 数据结构,用链栈来实现各进制间的相互转换。
    数据结构,用链栈来实现各进制间的相互转换。-Data structure, with chains stack to the achievement of the inter-binary conversion.
    2022-12-17 18:25:03下载
    积分:1
  • 基于元胞自动机的单元模拟应用程序
    该软件包包含基于正常数字和元胞自动机,以及一些经典的老的一些非同寻常的发电机。这些都是用于研究,而不是替换到库存随机 (这是很好的它是什么) 而设计的。所有这些不应该用于的加密 (SecureRandom 是细如是)。
    2022-04-20 08:17:22下载
    积分:1
  • 正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是...
    正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是2 个正整数,a≤b,找出a 和b之间约数个数最多的数x。 对于给定的2 个正整数a≤b,编程计算a 和b 之间约数个数最多的数。 数据输入 输入数据由文件名为input.txt的文本文件提供。文件的第1 行有2 个正整数a和b。 结果输出 程序运行结束时,若找到的a 和b 之间约数个数最多的数是x,将div(x)输出到文件output.txt中。 输入文件示例 输出文件示例 input.txt output.txt 1 36 9 -Positive integer x can be about a few of the positive integer x divisible. Positive integer x the approximate number recorded as the number of div (x). For example, 1,2,5,10 are about 10 positive integer number, and div (10) = 4. Set a and b are two positive integers, a ≤ b, to find a and b between about a few number of the largest number of x. For a given two positive integers a ≤ b, Programming calculated a and b between about a few number of the largest number. Data entry input data from the document text file named input.txt provide. File line 1 has two positive integers a and b. The results run the end of the output, if found between a and b of about a few number o
    2023-04-13 05:20:03下载
    积分:1
  • des algorithm implementation using c
    简单的实现实现了des加密算法,代码简洁易懂。    密码学是一门古老的学科,在密码学发展的历史上,出现了多种加密方法,又很早的古典加密算法,后来又出现了更成熟的分组密码,公钥密码及流密码等,因为我只涉及了分组公钥密码,所以在这篇文章中就暂且先介绍分组密码,在说分组密码之前要说的就是密码学中常见的两种体制,一种是对称密码体制,一种是非对称密码体制,也叫公钥密码体制。     对称密码体制是指如果一个加密系统的加密密钥和解密密钥相同,或者虽然不同,但是由其中的任意一个可以很容易地推导出另一个,即密钥是双方
    2023-07-28 12:00:02下载
    积分:1
  • 倒车仿真
    实现了倒车轨迹仿真,倒车轨迹仿真 C++模拟上位机算法,分步骤进行编程 
    2022-04-29 21:20:44下载
    积分:1
  • 用二叉树实现的排序
    用二叉树算法实现的排序-binary tree algorithm for ranking
    2022-02-25 14:51:25下载
    积分:1
  • QR方求实系数多项式方程的全部根
    QR方法求实系数多项式方程的全部根-QR method realistic polynomial equation coefficients of all-
    2022-03-11 04:15:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载