搜索资源列表
AVL_Lib
- Although there has been a lot of AVL tree libraries available now, nearly all of them are meant to work in the random access memory(RAM). Some of them do provide some mechanism for dumping the whole tree into a file and loading it back to the memory
kris_qsort_exe
- This forced me to write about more interesting and comprehensive sorting methods, the result of which is this one. Through this writing I have tried to give in-depth coverage of the entire sort algorithm I hope Peter wouldn t mind reading it. This ar
hello
- 你看过电梯上下来回,你知道它是如何运行的吗?本实例代码将彻底让你懂得其中的奥秘-You ve seen up and down the lift back and forth, you know how it is running it? The example code will let you know how to complete one of the mysteries
Josephus
- 设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,…,如此反复直到所有的人全部出列为止。Josephus问题是:对于任意给定的n,s和m,求出按出列次序得到的n个人员的序列。-With n individuals sitting around a round table is starting from the first s individuals reported number, the number of peopl
ch4
- 严蔚敏《数据结构》第四章程序源码,用C实现。-Yan Wei-Min <data structure> the forth chapter program source code, using C to achieve.
Josephus
- 约瑟夫环,设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,…,如此反复直到所有的人全部出列为止。以n=8,s=1,m=4为例,若初始的顺序为 n1,n2,n3,n4,n5,n6,n7,n8。则问题的解为n4,n8,n5,n2,n1,n3,n7,n6。-Joseph Wan, with n individuals sitting around a round table, is reported starting from
joseph
- 约瑟夫(Joseph)问题的一种描述是:编号为1,2,..., n 的n 个人按顺 时针方向围坐一圈, 每人持有一个密码(正整数)。一开始选任一个正整数作为报数上限值m, 从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将它的密码作为新的m值,再从下个人开始新一轮报数,如此反复,直到剩下最后一人则为获胜者。试设计一个程序求出出列顺序。-Joseph (Joseph) a descr iption of the problem is: numbered 1,2 ,.
mian
- 办公区里到处摆放着各种各样的零食。人力资源部的调研发现,员工如果可以在自己喜欢的美食旁边工作,工作效率会大大提高。因此,公司决定进 行一次员工座位的大调整。 调整的方法如下: 1 . 首先将办公区按照各种零食的摆放分成 N 个不同的区域。(例如:可乐区,饼干区,牛奶区等等)。 2 . 每个员工对不同的零食区域有不同的喜好程度(喜好程度度的范围为 1 — 100 的整数, 喜好程度越大表示该员工越希望被调整到相应的零食 区域)。
Hans-tower
- 相传印度教的天神梵天在创造地球这一世界时,建了一座神庙,神庙里竖有三根宝石柱子,柱子由一个铜座支撑。梵天将64个直径大小不一的金盘子,按照从大到小的顺序依次套放在第一根柱子上,形成一座金塔,即所谓的梵塔(又称汉诺塔)。天神让庙里的僧侣们将第一根柱子上的64个盘子借助第二根柱子全部移到第三根柱子上,即将整个塔迁移,同时定下3条规则: (1)每次只能移动一个盘子; (2)盘子只能在三根柱子上来回移动,不能放在他处; (3)在移动过程中,三根柱子上的盘子必须始终保持大盘在下,小盘在上。
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
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
main
- 设置在mxn的棋盘上,来回走路,走到最近的边角点就输出yes,否则(即不存在这样的走法)输出no。属于一道简单的模拟算法题目- 文言文 西班牙语 英语 粤语 中文 ON划词翻译ON实时翻译 Set back and forth to walk in the mxn chessboard,, go to the nearest corner point on the output of yes, otherwise (i.e., there is no such move) ou
Sort
- 奇偶交换排序是另一种交换排序。它的第一趟对序列中的所有奇数项i扫描,第二趟对序列中的所有偶数项i扫描。若A[i] > A[i+1],则交换它们。第三趟有对所有的奇数项,第四趟对所有的偶数项,…,如此反复,直到整个序列全部排好序为止。-Parity exchange swap is another sort. It' s the first trip of a sequence of all odd items i scan, the second trip of a sequence
Euler
- 一个欧拉回路的应用实例。一个农夫要巡视农场,要求每条路都要来回走一遍(即每条路走两遍且两遍的方向不同),求其解决方案。该问题的核心问题就是如何求欧拉回路。-Application examples of a Euler. A farmer to farm inspections required every road should go back and forth again (that is the way to go twice and twice each in a different
