搜索资源列表
TEST1_Joseph
- 实验内容:约瑟夫环(Joseph)问题的一种描述是:编号为1、2、3……n的n个人按照顺时针方向围坐一圈,没人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按照顺时针的方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph circle
Joseph_ring20120813
- 约瑟夫环问题的c++解决方法,包括双向链表和单向链表两种解决方法。-Josephus problem c++ solutions, including the doubly linked list, singly linked list are two workarounds.
Josephus
- 简单的约瑟夫环和复杂的约瑟夫环问题的代码。-Simple Joseph ring and complex Joseph ring problem code
jos
- 约瑟夫环出列问题,古罗马竞技场选择幸存者不杀头经典问题-Josepth problem s solution....eh very very very good
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
JosephusProblem
- 用C程序解决约瑟夫斯问题,是一个出现在计算机科学和数学中的问题。在计算机编程的算法中,类似问题又称为约瑟夫环。-In computer science and mathematics, the Josephus Problem (or Josephus permutation) is a theoretical problem related to a certain counting-out game.
Josephus
- 约瑟夫(Josephus)环问题:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。 建立n个人的单循环链表存储结构,运行结束后,输出依次出队的人的序号。(必须用链表)-Joseph (Josephus) Central question: numb
Joseph-Central-issues
- 约瑟夫环问题简单实现,递归算法,(带注释)可以利用此算法解决栈存储的约瑟夫环问题.-Joseph Central issues, C++ source code and notes
JosephuCircle
- 约瑟夫环问题,N个人围成一圈,从任意一个人开始报数,报到M的人从船上跳到水里,直到船上剩下指定的人数,求出最后剩下的人的编号-Josephus problem, N personal circle, began to count off any person, to report M man jumped into the water the boat until the specified number of people remaining on board, find the numb