登录
首页 » 算法 » 修道士和野人问题

修道士和野人问题

于 2022-05-16 发布 文件大小:58.82 kB
0 234
下载积分: 2 下载次数: 1

代码说明:

经典的修道士和野人过河问题, 1、可以选择修道士和野人的人数, 2、可以输出过河的详细方案, 3、代码清晰含注释,

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

发表评论

0 个回复

  • 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
  • 大点数 快速傅立叶变换 用Matlab编程实现 运行很好
    大点数 快速傅立叶变换 用Matlab编程实现 运行很好-Great points Fast Fourier Transform with Matlab programming to run good
    2023-02-10 20:05:03下载
    积分:1
  • GNU Scientific Library,C语言开发的数值方面的函数库
    GNU Scientific Library,C语言开发的数值方面的函数库-GNU Scientific Library, the C-language development of numerical library
    2022-03-23 18:43:42下载
    积分:1
  • 排序算法
    不同的算法使用的排序算法。我们已经介绍了更有趣的算法是: 插入排序、 归并排序、 快速排序、 堆排序
    2022-02-03 04:19:56下载
    积分:1
  • 研究动态可重构FFT或基于OFDM技术的认知无线电
    OFDM已经被广泛应用于各种通信系统中,例如IEEE802.11a/n[2]、[3]、IEEE802.16e(WiMAX)和MB-OFDM。正交频分复用(OFDM)为所需的频带安排数据,并通过IFFT将其转换成正交频率信号并发送出去。
    2022-12-05 05:25:03下载
    积分:1
  • 关于数值分析中的重要算法
    关于数值分析中的重要算法-numerical analysis of the algorithm
    2022-05-16 07:32:16下载
    积分:1
  • 文件hash算法
    通过浏览文件获取文件的信息,包括创建、修改、写入的日期信息,能够方便的计算出文件的hash值,用来确定是否为官方发布文件还是被修改后的文件。
    2022-05-19 10:27:00下载
    积分:1
  • 在MATLAB环境中实现最小二乘法和有理分式插值法的程序
    在MATLAB环境中实现最小二乘法和有理分式插值法的程序-lspoly and DOS method
    2022-06-01 07:49:17下载
    积分:1
  • 矩阵求逆算法程序, c++ 编写
    矩阵求逆算法程序, c++ 编写-matrix inversion algorithm, c prepared
    2022-04-18 21:58:20下载
    积分:1
  • viterbi编译码
    卷积码的编译码,信道为AWGN信道,BPSK调制,码率为1/2,译码为viterbi硬判决,并画出了BER的曲线
    2022-12-23 16:50:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载