搜索资源列表
HW1-1
- 一·数据定义及存储格式:(数据段定义不同数据演示) 数据在数据区的存储,DW、DB数据定义,十进制、二进制、B格式、H格式、BCD码、ASCII码, 正数、负数(补码)存储及汉字存储。 二·段地址与物理地址:数据段DS、ES、堆栈段SS、程序段CS 三·将数据区BUF1中前N个数,分别与数M相加,数据仍保存在原处。-Definition and a data storage format: (the defini
DEMO1-3
- 一·数据定义及存储格式:(数据段定义不同数据演示) 数据在数据区的存储,DW、DB数据定义,十进制、二进制、B格式、H格式、BCD码、ASCII码, 正数、负数(补码)存储及汉字存储。 二·段地址与物理地址:数据段DS、ES、堆栈段SS、程序段CS 三·将数据区BUF1中前N个数,分别与数M相加,数据仍保存在原处。-Definition and a data storage format: (the defini
tpn
- topn算法的堆实现,即从大量数据中寻找最大或最小的N个数-implementation of top N algorithm by heap, i.e. get top N numbers from many numbers
multiphufman
- 多元Huffman编码变形 问题描述: 在一个操场的四周摆放着n 堆石子。现要将石子有次序地合并成一堆。规定在合并过程中最多可以有m(k)次选k 堆石子合并成新的一堆,2≤k≤n,合并的费用为新的一堆的石子数。试设计一个算法,计算出将n 堆石子合并成一堆的最小总费用。数据输入: 由文件input.txt 提供输入数据。文件的第1 行有1 个正整数n,表示有n 堆石子。第2行有n个数,分别表示每堆石子的个数。第3行有n-1
pingjun
- 这是本人写的求任意n个数的平均值的程序,编程环境是Viasual C++ 6.0,可以直接运行-This is, I write for arbitrary n the average number of procedures, programming environment is Viasual C++ 6.0, can be directly run
InterSort
- 研究生课程 组合数学中的 错排问题 所谓错排问题 就是给定n个数 和n个盒子 编号是K 的数不能放在编号是K的盒子中,问有多少中不同的放置方案。-Combination of post-graduate courses in mathematics problem the wrong row of the wrong row of the so-called problem is that for a given number n, a
Queen
- 求解n皇后问题的MATLAB源程序。此程序只需输入皇后个数,即可得到所有的解。-N queens problem solving MATLAB source code. Just enter the number of this program at Queen' s, you can get all of the solution.
test
- 编写猜数游戏,计算机产生4个互不相同的个位数,让用户猜,用户每猜一次后,计算机给出猜测的结果:nAmB,其中n表示有n个数即猜对了数字也猜对了位置,m表示有m个数只猜对了数字,没猜对位置-The preparation of a number guessing game, computer-generated four separate one from the single digits, allowing users to gues
4
- 排列邻位互换生成算法 输入n个数 输出得到排列 -Ordered o-n the number of interchangeable generation algorithm input output to be arranged
Mergesort
- 对给定的N个数进行排序,进行非降次序排序,要求使用归并排序-The number of a given set of n sorted, according to the non-descending order of arrangement, requires the use of merge sort
1
- 设计一个O(n*n)时间的算法,找出由n个数组成的序列的最长单调递增子序列--design an O (n2) time algorithm to identify by the number n of the longest sequence monotonically increasing sequences.
Gallery
- 陈列馆问题: 1.问题描述 世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列室之外,还可以监视与它所在的陈列室相邻的上,下,左,右4个陈列室。 2.要求 试要求,设计一个安排警卫机器人哨位的算法,使得名画陈列馆的每个陈列室都在警卫机器人监视之下,切所用的警卫机器人数目最少。 3.结果输出 将计算的警卫机器人数及其最佳哨位安排输出到文件ou
Job4
- 本程序实现了找出一个n个数的序列中最长的单调递增子序列,并符带测试数据-This program implements to find a sequence of n the number of the longest monotonically increasing subsequence, and to break with the test data
zuhe
- 任意输入n个数了,从n个数字中选出r个数的数字组合问题-Number of arbitrary input n, from n-digit numbers selected number of combinatorial problems r
combination
- 找出从n个数中先出m(n>m)的所有组合-To find out from the n number of the first m (n> m) for all combinations
Quicksort
- 快速排序 快速排序是一种在含n个数的输入数组上最坏情况运行时间为O(n*n)的算法。 -Quicksort
reseat
- 可以随机的将N个数分配到N个位置上,特别是在一些随机分配的问题上有用-N number will be randomly assigned to the N positions, particularly in a number of issues were randomly assigned to be useful
9gong
- n阶方阵,即n*n个空格,填入n*n个数, 要求: 所有的行和列上,还有对角线上 的数字和相等(n>=3). 例: 8 1 6 3 5 7 4 9 2 -What other ways can be put forward.. 9 Palace solution to the problem. If there is something wrong with the s
sort
- 算法导论中第二章所有排序的自己模拟,快速排序,堆排序,计数排序,最大最小数,选择第n个数-Introduction to Algorithms in the second chapter of its own simulation of all sort, quick sort, heap sort, counting sort, maximum and minimum number, select the first n number
gbs
- 1、求任意n个数的最小公倍数 2、辗转相除法求两个数的最小公倍数、最大公约数-1, find the least common multiple of the number of arbitrary n 2, Euclidean algorithm of the least common multiple of two numbers, the common denominator