资源列表
cut-grass
- 有一个n*m的草坪(1<=n,m<=100),草坪中的草原来的高度都是100。现在使用割草机修剪草坪,来得到各种各样的图案。割草机只能横着或者竖着割草。每次割草都会先设定一个高度,割完之后会把比设定高度高的草都割成设定的高度。比如草原来是5 2 8,设定高度为4,那么割完之后就变成了4 2 4。 现在给出一个图案,问是否可以把草坪割成图案的样子。 输入第一行包含两个整数n和m。 接下来为n行输入,每行包含m个不大于100的正整数。 如果可以修剪成输入的图案,则输出“Y
unite-the-fruits
- 在一个果园里,多多已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆。多多决定把所有的果子合成一堆。 每一次合并,多多可以把两堆果子合并到一起,消耗的体力等于两堆果子的重量之和。可以看出,所有的果子经过n-1次合并之后,就只剩下一堆了。多多在合并果子时总共消耗的体力等于每次合并所耗体力之和。 因为还要花大力气把这些果子搬回家,所以多多在合并果子时要尽可能地节省体力。假定每个果子重量都为1,并且已知果子的种类数和每种果子的数目,你的任务是设计出合并的次序方案,使多多耗
SleepingBarbers1
- A sleeping barbers algorithm.
MyTest
- CUDA代码,主要是要实现一个具体ADD操作,并且可以高速在GPU上运行-An Algorithm based on UKF
Simplex_Method
- simplex method program for optimization using visual C-simplex method program for optimization using visual C++
SQP_Programming
- SQP programming for optimization
GoldenSectionSearch
- Golden section search method for searching optimization point
GrillageAnalysis
- grillage analysis for Finite element
LCS
- LCS 最长公共子序列。一个序列,如果是两个或多个已知序列的子序列,且是所有子序列中最长的,则为最长公共子序列。-LCS longest common subsequence. A sequence, if two or more sub-sequences of known sequences, and is the longest of all the sub-sequences, for the longest common subsequence.
zxec
- 己经一些离散的点,使用最小二乘法拟合直线-Had a number of discrete points, with linear least squares fitting
FFT_TEST2
- 一种FFT算法,输入为自然顺序的复数,输出为经过FFT变换的自然顺序的复数,基于win32控制台编的-One kind of FFT algorithm, the input is a natural sequence of complex numbers, the output is the natural order of the FFT transform complex, based on compiled win32 console
Discrete-PSO
- In this paper, a novel Discrete Particle Swarm Optimization Algorithm (DPSOA) for data clustering has been proposed. The particle positions and velocities are defined in a discrete form. The DPSOA algorithm uses of a simple probability approach
