资源列表
[其他小程序] Josephus
说明:Josephus 排列问题定义如下:假设n 个竞赛者排成一个环形。给定一个正整数m,从某 个指定的第1 个人开始,沿环计数,每遇到第m 个人就让其出列,且计数继续进行下去。这 个过程一直进行到所有的人都出列为止。最后出列者为优胜者。每个人出列的次序定义了整 数1,2,…,n 的一个排列。这个排列称为一个(n,m)Josephus 排列。-Josephus with the problem are defined as follows: Suppose n a player lined<刘丹> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[其他小程序] SEL2
说明:编程实现选择,算法找第K小元素的平均时间。 比较(1)n值变化(如5000,10000,20000) (2)输入量增序、非增序、随机排列 上述情况下算法的找第K小元素的平均 时间-Programming choices, the algorithm to find the first K elements of the average amount of time small. Compare (1) n value changes (such as 5000,10000,20000)<shellneyyan> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[其他小程序] 511Example
说明:该程序主要是用来了解定时器的运行规律,并对他进行必要的应用。-The program is primarily used to understand the operation of the laws of the timer, and him to carry out the necessary applications.<xxd> 在 2025-06-15 上传 | 大小:1kb | 下载:0