搜索资源列表
cyuanchengxu
- 函数模板T max(T a, T b, T c),使之实现对任何类型数,能从三个数中求出最大数返回。设计各种类型数据(char,short,long,float,double)调用此函数模板。-function template T max (T a, b T, T c), to enable it to achieve any of several types, a few were from the three sought to return to the greatest number.
1800Decorations
- 该源码是一个问题的解决方法。问题是给你个长为L的串,串中可以出现n种字符,还给出m个子串,求有多少个长为n的只由这些字串组成的串。输入例子:4 5 6 ABB BCA BCD CAB CDD DDA 结果为2.而5 4 5 E D C B A的结果为625-source of the problem is a solution. The problem is that you have the head of the L series, the series can occur n ch
matlabmatrix
- 1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if A = 1 2 3 then B = 3 2 1 4 5 6 6 5 4 7 8 9 9 8 7 Writ
oriencombin
- 利用横向递归算法解决数据组合的问题, 比如数组为a, 长度为len, 横向递归 B display(a,len) b是二维数组,a是一维数组-the use of horizontal recursive algorithm to solve the problem of data sets, such as the array is a length of len, horizontal display recursive B (a, len) b is the two-dimensional
矩阵加减乘(M)
- 一个比较简单的算法程序。输入一些数,计算后按照矩阵的形式输出。设了三个数组a[],b[],c[]。分别实现c[]=a[]+b[],c[]=a[]-b[],c[]=a[]*b[]。-a relatively simple procedure of the algorithm. The importation of some few, calculated in accordance with the matrix in the form of output. Established three a
opencv to matlab
- cvlib_mex is a collection (over two dozens) of matlab callable routines from the the OpenCV library (www.intel.com/research/mrl/research/opencv/). OpenCV is a real time computer vision library with many image processing capabilities and it is amaz
opencv to matlab
- cvlib_mex is a collection (over two dozens) of matlab callable routines from the the OpenCV library (www.intel.com/research/mrl/research/opencv/). OpenCV is a real time computer vision library with many image processing capabilities and it is amaz
a^b-mod-c
- 给出三个整数a,b,c;求解 a^b mod c 给出三个整形,其中a>=0,b>=0,c>1.输入以 0 0 0 结束。 -Given three integers a, b, c solving a ^ b mod c Given three plastic, which a> = 0, b> = 0, c> 1. 0 0 0 to end input.
1002NA
- A polynomial of degree n has the common form as . Your task is to write a function to find a root of a given polynomial in a given interval. Format of function double Polynomial_Root(int n, double c[], double a, double b, double EPS) whe
suanfa
- 设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括: 1. 删除一个字符 2. 插入一个字符 3. 将一个字符改为另一个字符 将字符串A变换为字符串B所用的最少操作数称为A到B的编辑距离,极为d(A,B)。设计一个算法,计算任意两个字符串的编辑距离。 -Set A and B are two strings. Operation will use the least character string A is converted to a
shijuzhenchengfa
- 用于计算两矩阵相乘,在程序运行时输入矩阵A,B的行列数-Used to calculate the two matrices in the program to run when the input matrix A, B the ranks of a few
Planer_convex_hull
- A Convex Hull is the smallest convex polygon that contains every point of the set S. A polygon P is convex if and only if, for any two points A and B inside the polygon, the line segment AB is inside P. One way to visualize a convex hull is to put
d80
- 现在,有两个正整数A和B,例如A是345,B是478,现在,需要把B插入到A里, 而A有三位,所以有四个位置选择,所得结果分别是: 478345, 347845, 344785, 345478 我们通过对比可以知道,在这当中最小的一个是344785 这两个正整数长度不超过100000位,各个位均不包含数字0 现在的目标是,要找出插入后所能得到的最小的整数,输出这个整数 -Now, there are two positive integers A and B, for e
dynamic_programming_seeking_to_strike_points
- 动态规划求取点距,求200点A中插入30个点B后,A到最近B的最小和-dynamic programming, seeking to strike points beyond 200 point a to insert a 30- point b, c to the nearest b the minimum and
julijingweidu
- 用VC实现从距离方位到经纬度的转换,已知一点A的经纬度和另一点B相对于点A的距离和方位,求点B的经纬度-With the VC to the latitude and longitude position from a distance conversion, known latitude and longitude point A, and another point A to point B relative to the distance and azimuth, latitude and
Project2
- 对数曲线拟合 Public Function funLogarithm(Num As Long, x() As Single, y() As Single, a As Single, b As Single) As Long 对数曲线拟合,y=a*ln(x)+b Num为输入数据点个数 x()为输入数据点横坐标组成的数组 y()为输入数据点纵坐标组成的数组 a,b为待求系数,为输出项 -failed to translate
lift
- 呵呵,有一天我做了一个梦,梦见了一种很奇怪的电梯。大楼的每一层楼都可以停电梯,而且第i层楼(1<=i<=N)上有一个数字Ki(0<=Ki<=N)。电梯只有四个按钮:开,关,上,下。上下的层数等于当前楼层上的那个数字。当然,如果不能满足要求,相应的按钮就会失灵。例如:3 3 1 2 5代表了Ki(K1=3,K2=3,……),从一楼开始。在一楼,按“上”可以到4楼,按“下”是不起作用的,因为没有-2楼。那么,从A楼到B楼至少要按几次按钮呢?-Oh, one day I had
large-A--mul-B
- 大数相乘 输入两个超大的整数,实现高精度乘法-Multiplying the input of large numbers of two large integers, to achieve high-precision multiplication
the-solution-to-AX=B
- 对任意线性方程组AX=B,利用矩阵等价变换形成上三角矩阵,在利用高斯消元法中的回代过程简便的求解方程组AX=B的解。本程序是用MATLAB编写的,运行时只要输入矩阵A和B,即可得到方程的解。程序中有详细的注释,很好理解。本程序具有通用性。-For any system of linear equations AX = B, the use of equivalent transformation matrix to form the upper triangular matrix using G
a==b
- Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". -conclude a is equal to b