搜索资源列表
xunhuanlianbiao-Josephus
- 用循环链表解Josephus问题。设有n个人围坐在一个圆桌周围,现从第1个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,…,如此反复直到所有的人全部出列为止。Josephus问题是:对于任意给定的n和m,求出按出列次序得到的n个人员的序列,如n=8,m=4时,输出序列是48521376。-cyclic Chain Solutions Josephus problem. N with the individuals sitting around a round
josefu
- Josephu问题为:设编号为1,2,… n的n个人围坐一圈,约定编号为k(1<=k<=n)的人从1开始报数,数到m 的那个人出列,它的下一位又从1开始报数,数到m的那个人又出列,依次类推,直到所有人出列为止,由此产生一个出队编号的序列。-Josephu issues: Let numbered 1,2, ... n of the n individuals sitting around, agreed number k (1 < = k < = n) from 1 to s
yuesefu
- 编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。 (1)利用单循环链表作为存储结构模拟此过程; (2)键盘输入总人数、初始报数上限值m及各人密码; (3)按照出列顺序输出各人的编号。-Numbered
Fibonacci-Sequence
- 汇编 菲波那契数列 include irvine32.inc 原理:f3=f2+f1 .data str1 byte "请输入所求的菲波那契数列的位数:",0 str2 byte "此程序中菲波那契数列最大位置:",0 j dword 2 求最大位置 f1 dword 1,0,0 用3个32位表示一个96位 f2 dword 1,0,0 用3个32位表示一个96位 m dword ? .code main proc mov
circular-linked-list-Josephus
- 约瑟夫环问题 【问题描述】 Josephus排列问题定义如下:假设n个竞赛者排成一个环形。给定一个正整数m≤n,从第1人开始,沿环计数,第m人出列。这个过程一直进行到所有人都出列为止。最后出列者为优胜者。全部出列次序定义了1,2,…n的一个排列。称为(n,m)Josephus排列。例如,(7,3)Josephus排列为3,6,2,7,5,1,4。 【实验要求】 设计求解Josephus排列问题程序。 (1)采用顺序表、单链表或双向循环链表等数据结构。 (2)采用双向循环
find
- 有n个整数(1<=n<=100)按由小到大顺序存放在一个数组中,输入一个数m,要求用折半查找法找出该数是数组中第几个元素的值。如果该数不在数组中,则输出“Not found.” -There are n integers (1 <= n <= 100) by ascending sequence stored in an array, enter a number m, asked to use a binary search method to find the
mw
- 实现m序列和Walsh序列合成m-w复合序列,并且分别有m序列和Walsh序列的代码-M sequence and Walsh m- sequence synthesis w composite sequence, and there were m sequence code and Walsh sequences
matlab_work
- ordeig.m——主程序,调用后两者,计算特征值,按顺序排列,使虚部递减 pois.m ——对于平面Poiseuille流通过切比雪夫你拟谱法离散化生成O-S矩阵 Dmat.m ——求解切比雪夫微分矩阵 -ordeig.m main program, after calling two, computing eigenvalues in sequence, so that the imaginary part of diminishing po
Msequence
- 生成M随机序列过程控制输入信号MATLAB程序-M-random sequence generation process control input signals MATLAB program
system-identification-and-modeling
- 系统辨识与建模的源码 包括白噪声程序,M序列程序,以及15种系统辨识方法源码-System identification and modeling of source Including white noise program, M sequence program, as well as 15 kinds of System Identification Code
