搜索资源列表
冒泡函数
- 本程序是一个算法,对一个数组进行排列.第一个数和第二个数比较,大的往下沉,小的往上冒,如此循环,最后得到一个由小到大的数组 -this procedure is an algorithm, for an array with. Number of the first and second numbers, the sinking large and small to take up such a cycle, the last to be headed by an array
030300329jose
- Josephus 排列问题定义如下:假设n 个竞赛者排成一个环形。给定一个正整数m,从某 个指定的第1 个人开始,沿环计数,每遇到第m 个人就让其出列,且计数继续进行下去。这 个过程一直进行到所有的人都出列为止。最后出列者为优胜者。每个人出列的次序定义了整 数1,2,…,n 的一个排列。这个排列称为一个(n,m)Josephus 排列。 例如,(7,3)Josephus 排列为3,6,2,7,5,1,4。-Josephus problem with the definition
ewszpx
- 输入30个数到一个5行6列数组,经排序后该数组各元素值按行从小到大排列,并显示该二维数组。 要求:直接在该数组中排序,不得转存于一个一维数组。 -input to a 30 Number 6 line arrays, sorting through the array element values of the firms from small to large order, and that the two-dimensional array. Requirements : direc
pailie
- 排列问题 M个1,N个0的排列(高效率版) 排列数为:c(m+n,n) 对n个0,m个1,我的想法是这样的: 每个排列可以分三段: 全0列,全1列, 子问题列 设各段长:r,s,t .子问题列就是 (n,m) = (n-r,m-s),其中0<=r<=n,s=1-problem with M-1, N 0 is the order (high-efficiency version) with a few : c (m n, n) of n 0, m one, I
15to5
- 福利彩票15选5玩法是从[1,15]中的15个整数中随机选取5个数,选对5个为特等奖,选对4个为一等奖,选对3个为二等奖。要想提高中奖率就要选择合适的号码。那么如何才能选择中奖率高的号码呢?我们可以通过MATLAB的随机排列数来模拟,实现号码好坏的检验。
DeleteNumber
- 删数问题,给定n位正整数a,去掉其中任意k个数字后,剩下的数字按原次序排列组成一个新的正整数。对于给定的n为正整数a和正整数k,设计一个算法找出剩下的数字组成的新数最小的删数方案
zcglcl
- 用于足彩排列过滤的程序,该程序,可以用效减少足彩的排列数。采用Delphi7编写。
07
- 建立一个类,具有以下功能: 1.维护多个学生和其成绩的数据。(把存储这些数据的数组的两个维数设成常数置于源文件头部,便于修改) 2.可以对成绩从高到低和从低到高排列。 3.可以增加新学生,删除一个老学生。
Josephus
- Josephus 排列问题定义如下:假设n 个竞赛者排成一个环形。给定一个正整数m,从某 个指定的第1 个人开始,沿环计数,每遇到第m 个人就让其出列,且计数继续进行下去。这 个过程一直进行到所有的人都出列为止。最后出列者为优胜者。每个人出列的次序定义了整 数1,2,…,n 的一个排列。这个排列称为一个(n,m)Josephus 排列。
Josep
- Josephus 排列问题定义如下:假设n 个竞赛者排成一个环形。给定一个正整数m,从某 个指定的第1 个人开始,沿环计数,每遇到第m 个人就让其出列,且计数继续进行下去。这 个过程一直进行到所有的人都出列为止。最后出列者为优胜者。每个人出列的次序定义了整 数1,2,…,n 的一个排列。这个排列称为一个(n,m)Josephus 排列。 例如,(7,3)Josephus 排列为3,6,2,7,5,1,4。 对于给定的1,2,…,n 中的k 个数,Josephus 想知道是否存
Perm
- 本程序实现了利用递归排序实现了数组的全排列,通过用户输入数组和选择排列的起始位置来完成输入-This procedure has the use of recursive order to achieve a wide array arranged, through the user input and selection of the array with the start position to complete the input
Delete
- Labview环境下删除数组中重复元素而不改变原数组元素排列顺序-Labview environment, remove duplicated elements in the array without changing the original order of the array elements
src
- 组合数学排列数生成算法,序数法和邻位互换法-Math ordered number generation algorithm, ordinal law and exchange method
shuzhupailie
- 数组排列!! 数组排列!!数组排列-Array arranged in an array arrangement!! Array arrangement!! Array arrangement!
quanpailie
- 问题描述:全排列是将一组数按一定顺序进行排列,如果这组数有n个,那么全排列数有n!个。在程序设计过程中,我们往往要对一个序列进行全排列或者对每一个排列进行分析。全排列算法便是用于产生全排列或者逐个构造全排列的方法。当然,全排列算法不仅仅止于全排列,对于普通的排列,或者组合的问题,也可以解决。-Problem Descr iption: Full array is a set of numbers arranged in a certain order, if there are n number
reverse-order-and-length-test
- 倒序排列数组的小程序以及对struct结构的长度测试-Descending array of small programs as well as the length of the test structure struct
C# 的排列组合类
- 算法:排列组合类 调用方法如下: // // 1.GetPermutation(T[], startIndex, endIndex) // 对startIndex到endIndex进行排列,其余元素不变 // // 2.GetPermutation(T[]) // 返回数组所有元素的全排列 // // 3.GetPermutation(T[], n) // 返回数组中n个元素的排列 // // 4.GetCombination(T[], n) // 返回数组中n个元素的
紫微斗数排盘 八字节气 等源码
- 紫微斗数排盘、八字预测,根据生辰八字进行星盘的排列、分析(Astrology row disk, eight forecast, according to the arrangement, birthdates of chart analysis)
回旋数组
- 按数字顺序排列的数组(最多10X10),将数组从顺序排列转化为回旋排列。
排列五投注神器源码
- 用DELPHI编写的排列五投注神器源码,如果注数比较多的放在,比如100注,500注,这样手工是无法组合的,本程序只要一秒就能解决问题。