搜索资源列表
ldf19870326
- 一个没有错误的约瑟夫环问题的源代码,约瑟夫问题(Joseph)的一种描述方法是:编号为1,2,.......,n的n个人按顺时针方向围坐一个圈,每个人持人一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m的人出列。将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号
josepRing
- joseph环。任务:编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1开始报数,如此下去,直到所有人全部出列为止-joseph ring. Tasks: number is 1,2, ... ..., n of the n individuals in accordance with th
yuesefu
- 实现的是对约瑟夫问题的c语言编程,实现的简单而且易懂。-Realized the problem of Joseph c language programming, to achieve the simple and easy to understand.
yue
- 数据结构上机报告-约瑟夫环。内有详细的需求分析及、源码及测试结果。高质量!-Reported on data structures- Joseph Central. Inside there is a detailed needs analysis and, source code and test results. High quality!
f22
- 约瑟夫环,几个人围坐每个人有一个密码,依次按密码找到要离开的人-Joseph Wan, a few people around who have a password for each, followed by the password you want to leave people
yueshefu
- 数据结构C语言的约瑟夫环的报告!希望对大家有用!-C language data structure of the report of Joseph Ring! Useful for all of us hope!
shujujiegoukechengsheji
- Joseph环,哈希表,银行业务模拟系统为题目的数据结构课程设计。有详细的文字说明和源代码。-Joseph Wan, the hash table, banking simulation system for the subject data structure course design. A detailed written instructions and source code.
Joseph
- Joseph环 任务:编号是1,2,……,n的n个人按照顺时针方向围坐一圈,每个人只有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向的下一个人开始重新从1报数,如此下去,直到所有人全部出列为止。设计一个程序来求出出列顺序。 要求:利用单向循环链表存储结构模拟此过程,按照出列的顺序输出各个人的编号。 -Joseph Ring task: number is 1,
1
- 清华大学严蔚敏老师《数据结构题集(C语言版)》实验 约瑟夫环 源代码-Tsinghua University, Yan Wei-min teacher " theme set the data structure (C language version)" Experimental Joseph Ring source code
yuesefuhuan
- 这是关于著名问题:约瑟夫环问题的一个解决方法,采用C++编程-This is about the well-known problem: Joseph Central, a solution to the problem, using C++ Programming
Joseph
- 编号为1,2,3,…,n的n个人按顺序针方向围坐一张圆桌旁,每个人手中持有 一个密码(正整数)。首先输入一个正整数作为报数上限值m,然后,从第一个人开始按顺序针方向自1开始顺序报数,报到m的人离开桌子,并将他手中的密码作为新的m值,从顺序针方向的下一个就坐在桌旁的人开始重新从1报数,如此下去,直至所有人全部离开桌旁为止。 算法思想: 用单循环链表来解决这一问题,实现的方法首先要定义链表结点,单循环链表的结点结构与一般单链表的结点结构完全相同,只是数据域用一个整数来表示;然后将它们组成
12
- 用C++实现约瑟夫环队列 希望对大家有用 -C++, achieving Joseph Central queue for all of us want to thank you
Joseph_problem
- Joseph环问题,用单链表方式实现环问题,如几个小朋友围成一圈,数数踢人出局.-joseph problem.
Lagrange-interpolation
- In numerical analysis, Lagrange polynomials are used for polynomial interpolation. For a given set of distinct points xj and numbers yj, the Lagrange polynomial is the polynomial of the least degree that at each point xj assumes the corresponding val
joseph
- 用C语言实现了约瑟夫环,里面是函数接口,可以把里面函数复制应用至自己的程序里使用-Joseph C language with the ring, which is a function interface, which functions can be applied to replicate the program in the use of their own
Joseph
- 利用循环链表实现约瑟夫问题的求解 数据结构-Joseph problem solving circular list
The-problem-of-Joseph
- 关于约瑟夫问题的C语言编写程序,这个在课程设计中估计用得到-Joseph C language programming on the issue, this estimate used to get in curriculum design
Joseph(new)
- 用伪链表实现约瑟夫环,其中的密码用的不是随机数,可以自行设置。-Joseph ring with pseudo list, the password is not used random number, you can set up their own.
Joseph-ring-problem-_CPP
- 约瑟夫环问题_C++约瑟夫问题如下:已知n个人(n>=1)围坐一圆桌周围,从1开始顺序编号。从序号为1的人开始报数,顺时针数到m的那个人出列。他的下一个人又从1开始报数,数到m的那个人又出列。依此规则重复下去,直到所有人全部出列。请问最后一个出列的人的编号。-Joseph problem as follows: given n individuals (n>=1) sitting around a round table, sequence number the beginning
Joseph
- 1. 约瑟夫(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 2. 演示程序以用户和计算机的对话方式进行,即在计算机终端上显示“提示信息”之后,由用户在键盘上输入演示程序中规定的运算命令