搜索资源列表
yuesefuhuan
- 本演示程序演算约瑟夫环问题,人数n应为任意的,首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为报数上限,如此循环,直至所有人都出列为止。-The demo program Joseph Central calculus problem, the number n should be arbitrary, we must first enter a value assigned to
Test
- 用循环链表解决约瑟夫环问题。对学习循环链表有很大帮助-By cyclic list Joseph Central problem to solve. Learning cycle has a great list to help
Kruskal
- 约瑟夫环问题,此源码是对约瑟夫环问题使用链表进行实现的。-Joseph Central issues, the source of Joseph Central issues to realize the use of linked lists.
ysf
- 约瑟夫环,使用链表解决约瑟夫环的数据结构问题。-Joseph Wan, the use of linked lists of data to resolve Joseph ring structure.
cpp
- 数据结构课程设计--约瑟夫环问题.有三种方法可以实现.-Data Structure Course Design- Joseph Central problems. There are three methods can be achieved.
yuesefuhuan
- 数据结构试验报告 约瑟夫环 问题描述: 约瑟夫(Joseph)问题的一种描述是:编号为1,2,,...,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从l报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 基本要求:
Josephus
- 约瑟夫环 杀犯人的问题 从当前人开始数一个数 数到可以赦免 最后剩一个人被杀-Joseph Ring kill prisoners began a few from the current count to be a pardon of a person killed in the final residual
11
- 约瑟夫(Joeph)问题,利用单向循环链表存储结构模拟此过程.-Joseph (Joeph) problem, using one-way linked list storage structure simulation cycle of the process.
Joseph_circle
- 约瑟夫环2,不同的问题不同的解法。。。产生随机数-Joseph Central 2, different problems different solution. . . Generated random number
joseph
- 1. 以单项循环链表存储结构模拟约瑟夫环问题。即编号为1、2、3…、n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向下一个人开始重新从1报数,如此下去,直至所有的人全部出列为止。按出列顺序印出各人编号。 2. 演示程序以用户与计算机的对话方式执行,用户输入相应的数据,输出结
yuesefuhuanwenti
- 本程序是一个对约瑟夫环问题的演示程序,详细的演示了其过程-This procedure is a demonstration of the issue of Joseph Central procedures, detailed presentation of its process
YueSeFuHuan
- C++编的数据结构问题,关于约瑟夫环问题。经典问题。-C++ Allocated data structure, on the issue of Joseph Central. Classic problem.
ShuJuJieGouKeChengSheJi
- 数据结构课程设计报告。包含两个问题,约瑟夫环和停车场管理。-Data structure report of the curriculum design. Contains two issues, Joseph Central and car park management.
3
- 3. 约瑟夫环问题。设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,报m的人出列,从他在顺时针方向上的下一个人起重新自1起顺序报数;报到m的人出列;如此下去,直到所有人全部出列为止。用带头结点的单循环链表作数据元素的存储结构。 数据输入: 第一行为人数n。 第二行为报数值m。 数据输出: 依次输出出列人员的编号。
Josephus
- java源代码,经典问题,约瑟夫环问题-java source code, the classic problem, the issue of Joseph Central
Cpp1
- 约瑟夫环问题:设有编号为1,2,3……n的n个人顺时针方向围坐一圈,每人有一密码(正整数)。开始时给出一报数上限m,从编号为1的人开始报数,报m的人出列;以后将出列者的密码作为新的m,从顺时针方向紧挨着他的下一个人开始报数……直至所有人出列。-Joseph Central question: has numbered 1,2,3 ... ... n of n individuals clockwise around a circle,
code
- 1、猴子选大王 2、约瑟夫环 3、迷宫求解 4、回文游戏 5、地图四染色问题 6、八皇后问题 7、原四则表达式求值 8、k阶斐波那契序列 9、遍历二叉树 10、编写DFS算法的非递归函数。 编写BFS算法。 11、简单选择排序, 折半插入排序, 冒泡排序, 快速排序, 堆排序 12、顺序查找,折半查找-err
Josephus
- java的经典example——在java中用链表解决约瑟夫环问题~-solve Josephus problem in java
josph
- 约瑟夫环问题,采用不带头结点的单链表,进行操作-Joseph Central problem, do not take the lead in adopting single-linked list node, to operate
Yuesefu
- 约瑟夫环的问题,利用Java做的,开发坏境是netbeans。-Joseph Central issues, the use of Java to do the development of habitat is a bad netbeans.