搜索资源列表
caluu
- 二维数组运算,避免一维的麻烦,效率高,简单-Two-dimensional array of computing, to avoid the trouble of one-dimensional, high efficiency, simple
shuzhifenxi3
- 实验题目:曲线拟合的最小二乘法 相关知识:已知C[a,b]中函数f(x)的一组实验数据(xi,yi)(i=0,1,…,m),其中yi=f(xi)。设 是C[a,b]上线性无关函数族。在 中找函数f(x) 曲线拟合的最小二乘解 ,其法方程(组)为: 其中, k=0,1,…,n 特别是,求函数f(x) 曲线拟合的线性最小二乘解 的计算公式为: 数据结构:两个一维数组或一个二维数组 算法设计:(略) 编写代码:(略) 实验用例: 已知函数y
GaussSeide
- 实验题目:求解线性代数方程组的迭代法 相关知识:求解线性代数方程组的Gauss-Seidel迭代法的计算公式如下 数据结构:一个一维数组和一个二维数组 算法设计:用Gauss-Seidel迭代法求解线性代数方程组的算法如下 第一步:对于i=1,2,…,n (取零向量为初始向量) 第二步:e←0 第三步:对于i=1,2,…,n ⑴ ⑵对于j=1,2,…,n但 ⑶ ⑷若 ,则 ⑸ 第四步:若 (预先给定的误差精度),则转
bucketSort
- (吊桶排序法)吊桶排序法源于一维正整数数组的排序问题,它使用了一个行从下标从0-9,列下标从0-n-1(n是一维数组中的元素数目)的二维整数数组,二维数组的每一行叫做一个吊桶(bucket)。-(Bucket sorting method) bucket sort method from the one-dimensional array of positive integer scheduling problem, it uses a line from the subscr ipt from
Dynamic_Malloc_Memory(MultiDim)
- 动态多维数组内存申请,可以很容实现一维,二维和三维动态数组的申请,好用,简洁。-Dynamic multi-dimensional array of memory an application can allow the realization of one-dimensional, two-dimensional and three-dimensional dynamic array of applications, easy to use, simple.
inner_interpolate
- 对数组进行等分内插的程序,给定一个一维数组,求数组各元素之间等分值。等分的数目可以根据N进行设定,方便实用。-This is a programme for average inner_interplolation of a one-dimensional vector.You can specify the number of division as you want.
3
- 1、一维数组; 2、一维数组排序,反转一维数组-1, one-dimensional array 2, one-dimensional array sorting, reverse one-dimensional array
N-lines-before-output-Triangle
- 一、 输入一个正整数n,通过程序输出杨辉三角的前n行,并输入一个正整数m,若m在杨辉三角中存在,输出所在位置的行列。 (1) 输入正整数n,输出杨辉三角形的前n行,1<n<20。要求至少给出四种解法:不使用任何数组,只使用一维数组,只使用二维数组,使用递归。 (2) 输入正整数m, 若m在杨辉三角形中存在,输出所在位置的行列编号。-Enter a positive integer n, the first n rows of Pascal' s Triangle pro
array
- 主要讲述一维数组的用法,和指针和二维数组进行区分。-Main tells one dimensional array usage, and pointer and two-dimensional array to distinguish.
1-1
- 利用VC++来实现一维数组的倒置,这是数据结构中一个很简单的例子。-VC to achieve a one-dimensional array of inverted, this is a very simple example of the data structure
1-2
- 这个是数据结构中的一个例子:一维数组应用。主要是排序,例如冒泡法排序。-This is an example of the data structure: a one-dimensional array application. Mainly sort, such as bubble method to sort.
binarytree
- 二叉树的顺序存储结构——已知用户将一棵完全二叉树的n个结点(数据类 型可以是字符型、整型等等)以自顶向下、从左到右顺序输 入到一个一维数组中: (1)编写算法FindRelation(i),输出i的父结点和 所有孩子结点(如果有的话)。(2)编写算法Print打印这棵二叉树的所有节点:先打印二叉树的 根、再打印左子树、最后打印右子树;(即在顺序存储结构上先序遍历 二叉树); -Stored in the order of the binary tree
1097
- 将两个int一维数组中的数据进行交换,两个数组长度相同。 void ArraySwap(int iArray1[], int iArray2[], int iLen) 【输入】iArray1:整数数组,空间已经开辟好; iArray2:整数数组,空间已经开辟好 iLen:数组长度 【返回】无 【注意】只需要完成该函数功能算法,该函数中间不需要有任何IO的输入输出。。 -One-dimensional array of two int data exchange, the two arrays
eightqueues
- 这是一个古老的具有代表性的问题,用计算机求解时的算法也很多,这里仅介绍一种。 采用一维数组来进行处理。数组的下标i表示棋盘上的第i列,a[i]的值表示皇后在第i列所放的位置。如:a[1]=5,表示在棋盘的第一例的第五行放一个皇后。 程序中首先假定a[1]=1,表示第一个皇后放在棋盘的第一列的第一行的位置上,然后试探第二列中皇后可能的位置,找到合适的位置后,再处理后续的各列,这样通过各列的反复试探,可以最终找出皇后的全部摆放方法。 程序采用回溯法,算法的细节参看程序。-This is
01beibao
- 用一维数组解决背包问题,十分经典,可提升空间基本没有-With a one-dimensional array to solve knapsack problem, very classic, can be basically no room for improvement
5
- 假设有一个数据类型为整型的一维数组A,A 中的数据元素呈无序状态,编写一个采用堆排序法将A中的数据元素按由小到大进行排序的程序。-Suppose there is a data type integer one-dimensional array A, A data element was disordered state, the preparation of a heap sort using the data elements of A are sorted by ascending pr
FindPath
- 寻径问题: 给定n个村庄之间的交通图,若村庄i和村庄j之间有道路,则将顶点i和顶点j用边连接,边上的权Wij 表示这条道路的长度。现在要从这n个村庄选择一个村庄建一所医院,问这所医院应建在哪个村庄,才能使离医院最远的村庄到医院的距离最短? 实现的功能: 1.自动生成数据; 2.自动生成字符串; 3.显示矩阵图; 4.非法输入的判断; 5.重复输入现有的相同数据的判断; 6.动态生成一维数组,二维数组; 7.数组内数值的比较以及输出; 8.查找标示符在数组中
数组初始化
- 通过对一维或者多维数组的静态分析,对其进行初始化(Initialization of a one-dimensional or multidimensional array by static analysis)
labview2
- 内容 1:在一个波形图控件中用 2 种不同的线宽显示一条正弦曲线和一条余弦曲线。内容2:在一个波形图表控件中显示 3 条曲线,分别用红、绿、蓝 3 种颜色表示范围 0~1、0~5 和 0~10 的 3 个随机数。内容三:产生一个 10 行 10 列的二维数组,数组成员为 0~100 之间的任意整型数,用强度图显示出来。(Content 1: a sine curve and a cosine curve are displayed with 2 different line widths in
hello01
- 能输出一个一维数组,编码简单明了,适合新手学习基本的输出操作。(can print something interesting.)