搜索资源列表
Joseph
- 约瑟夫环问题,简明算法.注释部分可单独构成助于理解的文档.-Josephus, concise algorithm. Comment section can be used alone constitute a help to understand the document.
Josephus
- VC++6.0下的约瑟夫环问题实现,可以输入人数和要数的数字,并将出队的次序依次输出-Josephus Circle with VC++6.0.You can input number of people and the number to be counted.Then sequence can be printed on the screen.
joseph
- 模拟约瑟夫环(josephus)问题: n个人(编号为1,2,3,……,n (n>0) )按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出两个值:一个为首先报数的人的编号i (0<i<=n),另一个为起始报数上限值m。接着从编号为i的人开始按顺时针方向自1起顺序报数,报到m时停止报数,且报到m的人出列,并将他的密码作为新的m值,从他在顺时针方向上的下一个人起重新自1报数,……,如此下去,直到所有人全部出列为止。设计一个程序模拟此过程,给出出列人的编号序列。 基本
Josephus
- 约瑟夫(Josephus)环问题 设n个人围坐在一个圆桌周围,现在从第s个人开始报数,数到第m个人,让他出局;然后从出局的下一个人重新开始报数,数到第m个人,再让他出局,如此反复直到所有的人全部出局为止。 下面要解决的约瑟夫(Josephus)环问题是:对于任意给定的n,s和m,求出这n个人的出局序列。要求以单循环链表作为存储结构,实现约瑟夫环问题。然后使用n=9,s=1,m=5,以及n=9,s=1,m=10作为输入数据,检查你的程序的正确性和健壮性。 -Joseph (Josep
JosephSTL
- [转发]约瑟夫环问题的一种C语言的算法,STL链表解法。-[Forwarded] Josephus a C language algorithms, STL linked list solution.
Josehpos
- [转发]约瑟夫环问题的不带头结点的循环链表解法,可以成功运行哒~-[Forwarded] Josephus problem does not take the lead in the solution of the circular linked list of nodes, you can successfully run da ~
Josehpos
- [转发]约瑟夫环问题的带头节点的循环链表的解法-[Forwarded] the solution of the circular linked list of the leading node of the Josephus problem
Josephus
- [转发]约瑟夫环问题的数组解法,很简单的一个算法。-[Forwarding] the Josephus array solution, a very simple algorithm.
Josephus
- 约瑟夫环问题 数据结构经典算法 链表实现-Josephus problem
huan
- 约瑟夫环问题的代码。设有N个人围坐一圈,从某个人开始报数,数到M的人出列,接着从出列的下一个人开始重新报数,数到M的人又出列,如此下去,直到所有人都出列为止.试设计确定他们的出列次序序列的程序。-Joseph cycle problem code. With N individuals sitting around a circle, starting from the one person reported the number of people who count the column M
Josephus
- 简单的约瑟夫环和复杂的约瑟夫环问题的代码。-Simple Joseph ring and complex Joseph ring problem code
Josephus
- 约瑟夫环问题:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列-Josephus problem: Let numbered 1, 2, 3, ...... n n (n> 0) i
JOSEPHUS
- 约瑟夫环问题的实际场景。已知n个人围坐在圆桌周围,从编号k的人开始报数,数到m的那个人出列,依次下去,直至全部出列。采用的解决方法是典型的循环链表的数据结构。-Josephus actual scene. Given n people sitting around the round table, starting from the number k reported number, the number to m the man out of the line, and go on, unti
Huffman
- 哈夫曼树,用哈夫曼树解决约瑟夫环问题 代码具有良好封装性-Huffman tree Huffman tree the Josephus problem code with good package
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
sd2
- 约瑟夫环问题的程序清单-Josephus list of procedures-Josephus problem program list-Josephus list of procedures
yueshefu
- 一个介绍 约瑟夫环 问题的 一个算法。采用了 链表结构-An introduction Josephus an algorithm. Using a linked list structure
Josephus
- 约瑟夫环问题,用户输入M,N值,从1至N开始顺序循环数数,每数到M输出该数值,直至全部输出。-Josephus, the user input M, N values, each number to the start sequence and cycle count from 1 to N, M output the values, until all the output.
Homework1_2
- 约瑟夫环问题原代码,亲自检验能运行成功,没有错误-Josephus original code, personally test can be run successfully, the error