登录
首页 » 数据结构 » 约瑟夫环

约瑟夫环

于 2022-04-16 发布 文件大小:86.45 kB
0 113
下载积分: 2 下载次数: 1

代码说明:

设编号为1,2,···,n的n个人围坐一圈,约定编号为k(1≤k≤n)的人从1开始报数,数到m的那个人出列,他的下一位又从1开始报数,数到m的那个人又出列,依次类推,直到所有人出列为止,由此产生一个出队编号的序列。

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

发表评论


0 个回复

  • 一元稀疏多项式计算器[加法和乘法] 问题描述: 设计一元系多项式计器实现两个多项式间的加法、减法。 基本要求: (1) 输入并建立多项式 (2) 输出多项式...
    一元稀疏多项式计算器[加法和乘法] 问题描述: 设计一元系数多项式计数器实现两个多项式间的加法、减法。 基本要求: (1) 输入并建立多项式 (2) 输出多项式,输出形式为整数序列:n,c1,e1,c2,e2……cn,en,其中n是多项式的项数,ci,ei分别为第i项的系数和指数。序列按指数降序排列。 (3) 多项式a和b相加,建立多项式a+b,输出相加的多项式。 (4) 多项式a和b相减,建立多项式a-b,输出相减的多项式。 用带表头结点的单链表存储多项式。 测试数据: (1) (2x+5x8-3.1x11)+(7-5x8+11x9) (2) (6x-3-x+4.4x2-1.2x9)-(-6x-3+5.4x2+7.8x15) (3) (x+x2+x3)+0 (4) (x+x3)-(-x-x-3)-one yuan sparse polynomial calculator [Addition and multiplication] Problem description : Design one yuan polynomial coefficient counter achieve the two polynomials addition, subtraction. Basic requirements : (a) input and the establishment of polynomial (2) output polynomial, the output form of integer sequence : n, c1, e1, c2, e2 ... cn, en, where n is the polynomial Number, ci, ei for the first item i the coefficients and indexes. By sequencing index in descending order. (3) a and b polynomial addition, the establishment of a polynomial b, the combined output polynomial. (4) a and b polynomial subtraction, the establishment of a polyno
    2022-10-15 00:45:03下载
    积分:1
  • 的八皇后问题
    数据结构的八皇后问题-data structure of eight Queens
    2023-01-10 00:05:03下载
    积分:1
  • JAVA源代码反编译超级引挚
    JAVA源代码反编译超级引挚 -Java source code compiler- super engine
    2023-06-21 01:00:04下载
    积分:1
  • c++中的链表处理程序
    c++中数据结构的链表处理程序-c structure of the data processing procedures Chain
    2023-06-16 14:50:04下载
    积分:1
  • 素朴贝叶斯文本分类代码
    欢迎下载学习 它很容易理解 贝叶斯分类器,例如,易于理解和适用于模式识别
    2022-04-22 07:31:57下载
    积分:1
  • c语言各种排序时间复杂度的比较,希尔排序,快速排序等...
    数据结构c语言各种排序时间复杂度的比较,希尔排序,快速排序等-C language data structure a variety of sorting time complexity comparison, Shell sort, quick sort, etc.
    2023-06-21 10:50:05下载
    积分:1
  • 创建一个链表,逆向输出链表,两个链表的合并的vc程序编程实现代码。...
    创建一个链表,逆向输出链表,两个链表的合并的vc程序编程实现代码。-create a linked list, reverse output chain and the two combined Chain vc programming code to achieve.
    2022-08-16 20:54:19下载
    积分:1
  • 停车场的程序,是用多线程写的,有详细的注释
    停车场的程序,是用多线程写的,有详细的注释-parking procedures is the use of multi-threaded writing, a detailed Notes
    2022-01-24 16:23:08下载
    积分:1
  • 二叉树实例
    二叉树是重要的数据结构,在其它数据结构的学习当中是基础环节。其他树形结构与二叉树在本质上都有一定的相似。而遍历是树形结构的重要算法。好的遍历算法效率高稳定性强。C++实现的二叉树。
    2022-06-18 01:48:26下载
    积分:1
  • 车辆管理系统,不错
    车辆管理系统,不错-Vehicle Management System, yes
    2023-04-24 05:55:03下载
    积分:1
  • 696518资源总数
  • 105111会员总数
  • 25今日下载