登录
首页 » 算法 » 本程序采用循环单链表的算法来解决约瑟夫环问题:建立一个循环单链表,按顺序查找指定结点,找到后删除,最后打印删除的编号序列。

本程序采用循环单链表的算法来解决约瑟夫环问题:建立一个循环单链表,按顺序查找指定结点,找到后删除,最后打印删除的编号序列。

于 2022-05-30 发布 文件大小:1.11 kB
0 221
下载积分: 2 下载次数: 1

代码说明:

本程序采用循环单链表的算法来解决约瑟夫环问题:建立一个循环单链表,按顺序查找指定结点,找到后删除,最后打印删除的编号序列。- This procedure uses circulates Shan Lianbiao algorithm to solve the Joseph link problem: Establishes to circulate Shan Lianbiao, assigns the point according to the smooth search, after found deletes, finally prints the serial number sequence which deletes.

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

发表评论

0 个回复

  • 斯密斯预估器
    1、CserialPort实现了简单而强大的多线程串口编程工具,CserialPort类是在Remon Spekreijse设计的CSerialPort类基础上设计的,并增加了对二进制数据传输和块读写方式的支持和其他功能函数;2、实现了Smith预估器与PID控制的结合;
    2023-01-05 17:00:10下载
    积分:1
  • 基于分水岭的彩色图像分割
    分水岭算法分割彩色图片,使用时只需要更改处理图片的路径即可,属于Matlab程序,压缩文件中含有原始图片
    2023-09-02 22:10:03下载
    积分:1
  • refprop调用
    简单的refprop代码,仅仅只是针对不懂同学,当然还有获取更多资源
    2023-07-13 16:35:04下载
    积分:1
  • 图像变形
    此程序是 qt 离散度与 c + + 实现的。在 qt 离散度,得到了 GUI 和变形算法是在 c + +。实现变形算法的方法是一个一个天真的。您可以在 visual studio 2008 中运行此程序,您应该先安装 QT lib。
    2022-04-25 12:05:02下载
    积分:1
  • 数值方上机实验内容. 自适应用图象实现效果.
    数值方法上机实验内容. 自适应算法用图象实现效果.-numerical methods for experiments. Adaptive algorithms used images to achieve results.
    2022-05-16 08:49:17下载
    积分:1
  • topological sorting 拓扑排序
     用C语言实现的拓扑排序算法topological sorting
    2022-04-18 18:34:53下载
    积分:1
  • 混合高斯背景建模
    采用背景差分法,用混合高斯背景建模,检测视频车辆,并显示视频的背景和前景。
    2023-05-22 16:00:04下载
    积分:1
  • 独立钻石棋问题描述: 有一棋盘, 上有44个钻石棋子,有一位置空缺, 棋盘初始状态如下:    111    111    111 111111111 1111...
    独立钻石棋问题描述: 有一棋盘, 上有44个钻石棋子,有一位置空缺, 棋盘初始状态如下:    111    111    111 111111111 111101111 111111111    111    111    111 其中,0表示没有放置棋子, 1表示放置。 规定走法如下: a. 任一棋子可越过一相邻棋子(紧相邻)跳到一空缺位置, 并吃掉越过的棋子(从棋盘移处) 如, 走一步后棋盘状态:    111    111    111 111111111 111110011 111111111    111    111    111 b. 最后只留下一个棋子在棋盘上, 并且位置在正中央。 要求: 用程序得出正确走法。 输入: 无 输出: 每一步移动后的棋盘状态, 格式如上。-independent diamond chess Problem description : a chessboard, there are 44 pieces of diamonds, a position vacant chessboard initial state as follows : 111111111 111101111 111111111 which, 0 no place pawn, a place said. Provisions in law are as follows : a. as a pawn to be crossed an adjacent piece (bear adjacent) jumped to a vacant position, and eaten across the pawn (shift from the chessboard) If, after the chessboard go one step further state : 111111111 111111111 111110011 111111111 111111111 b. leaving only a game son on the chessboard, and in the middle position. Requirements : getting the correct procedures in law. Input : None output : e
    2023-01-15 08:55:03下载
    积分:1
  • poj 1523的代码和方说明,个人原创
    poj 1523的代码和方法说明,个人原创 - the codes and solution for poj 1523
    2022-03-18 16:17:02下载
    积分:1
  • 蛙跳差分方,精华分(ˇˍ ˇ) 想~ 蛙跳差分方,精华分(ˇˍ ˇ) 想~...
    蛙跳差分方法,精华分(ˇˍ ˇ) 想~ 蛙跳差分方法,精华分(ˇˍ ˇ) 想~-leap forg
    2023-09-08 20:35:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载