搜索资源列表
hw1-joseph
- c++数据结构中处理约瑟夫环问题源码,使用模版编写链表。配套清华版数据结构图书。-c++ data structure in processing Josephus source, use the template to write a linked list. Supporting Tsinghua version data structure books.
JoseQuestion
- 约瑟夫环问题求解 约瑟夫环问题的具体描述是:设有编号为1,2,……,n的n(n>0)个人围成一个圈,从第1个人开始报数,报到m时停止报数,报m的人出圈,再从他的下一个人起重新报数,报到m时停止报数,报m的出圈,……,如此下去,直到所有人全部出圈为止。当任意给定n和m后,设计算法求n个人出圈的次序。-Josephus Josephus problem solving specific descr iption is: has numbered 1, 2, ...... n n (n
Josephus
- 数据结构 JUSEPHUS算法,java实现-Data structure JUSEPHUS algorithm, java implementation
sd2
- 约瑟夫环问题的程序清单-Josephus list of procedures-Josephus problem program list-Josephus list of procedures
yuesefu
- C语言数组实现约瑟夫环 对于初学者是个不错的教程-C language array to achieve Josephus
JosephusProblem
- 用C程序解决约瑟夫斯问题,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,类似问题又称为约瑟夫环。-In computer science and mathematics, the Josephus Problem (or Josephus permutation) is a theoretical problem related to a certain counting-out game.
yueshefu
- 一个介绍 约瑟夫环 问题的 一个算法。采用了 链表结构-An introduction Josephus an algorithm. Using a linked list structure
josephus
- 约瑟夫问题解决方案(数据结构课程设计代码) -Joseph (data structure code)
Josephring
- 约瑟夫环的问题,以循环链表的方式进行,找到最都一个出链表的人是谁-Josephus, a circular linked list, find out the most are a linked list of Who
Homework1_2
- 约瑟夫环问题原代码,亲自检验能运行成功,没有错误-Josephus original code, personally test can be run successfully, the error
Josephus1
- 用c++语言实现,顺序表实现的josephus问题,不当之处请包涵。-C++ language achieve, the sequence table realized josephus problems, inappropriate please bear with me.
Joseph
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -Joseph (Josephus) ring problems: No. 1, 2, 3
Josephus-Problem
- 约瑟夫问题:编号为1,2,……,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph: Number as 1, 2, ......, n n individuals in a clockwise direction around
1
- 2、 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。 -2, Joseph (Josephus) ring problem: Number
Josephus
- 题目描述:设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,如此反复直到所有人全部出列为止。最终显示出列人的队列。 这个问题是约瑟夫问题的实例化,运用了循环链表,详细算法描述及测试结果见Readme。-Subject descr iption: has n individuals sitting around a round table, now from the first s personal Countin, n
data-construction
- 数据结构中一系列的练习包括:约瑟夫环,一元稀疏多项式简单计算器,迷宫,文学研究助手等源代码-Data structure in a series of exercises include: Josephus, one yuan sparse polynomial calculator, maze, literature research assistants such as source code
yuesefuhuan
- 华为编程大赛,约瑟夫环试题,值得一看,非常的经典!-Huawei programming contest to Josephus questions, worth a visit, very classic!
Josephus
- 利用带头结点的尾插法建立链表求解的时候,头节点的作用无法确定,导致编译通过,但是运行之后的结果都不是正确的运行结果。苦苦思索,包括和同学讨论,一直没能解决,最后决定改用另一种存储方法,将头节点直接改成NULL,最终测试的结果是正确的。(但是还未能完全理解原因是什么)-Take the lead in the tail of the node interpolation method for solving the establishment of the list when the role o
QueueToJosephRing
- 用队列解决约瑟夫环的问题,使用两种方式构建队列。(C#构造)-Queue to solve the problem of Josephus, two ways of constructing the queue. (C# constructor)
ex1
- 单环链表实现约瑟夫环问题,用了链表的应用,可以输入n,m,s-The single ring linked list implementation Josephus, with the application of a linked list, you can enter n, m, s