-
EOF
经验正交函数分析FORTRAN程序,用于变量场的时空结构分离(配套书籍《现代气候统计诊断与预测技术》)。(empirical orthogonal function, FORTRAN procedure, used to separate the spatio-temporal structure of climate variables.)
- 2019-03-07 17:15:59下载
- 积分:1
-
fgcone
matlab 程序 圆锥拟合 使用最小二乘法(matlab cone fitting procedure using the least squares method)
- 2021-02-22 11:19:41下载
- 积分:1
-
spintgrl
三次样条插值函数源代码:对输入的数据采用三次样条插值处理,集成了样条,并返回积分值。(Cubic spline interpolation function source code: the input data using cubic spline interpolation processing, integrated spline, and returns integral values.)
- 2013-06-27 11:10:43下载
- 积分:1
-
FDM
用有限差分方法求解波动方程,画出波场快照,模拟波在地下传播!(The wave equation by finite difference method, draw the wave field snapshot, simulate wave propagation in the underground!)
- 2020-12-18 11:59:10下载
- 积分:1
-
5
★问题描述:
给出平面上的N 个二维点,求出距离最小的2 个点对。本题中距离定义为他们的直
线距离。例如(0,0) (3,4)的距离为5.
★数据输入:
有多组数据,对于每组数据,第一行是一个数字N 表示点的个数。N=0 的时候说明
输入结束。之后N 行,每行有2 个浮点数x_i,y_i 表示第i 个点的坐标。(1<=N<=10000
0,0<=|x_i|,|y_i|<=10^9)
★结果输出:
输出一个浮点数,表示最近点对的距离除以2,保留2 位小数(四舍五入)。
- 2013-12-03 14:57:02下载
- 积分:1
-
wigb
将矩阵显示成地震剖面,如果只 a 是输入,可扩展,X,Z,安姆,连接AMX自动决定,否则为“可扩展”是一个标量, ,z 的载体用于注释的偏移和时间,连接AMX振幅范围内。(The matrix shown as seismic profiles, If only a is enter, scal,x,z,amn,amx are decided automatically
otherwise, scal is a scalar x, z are vectors for annotation in
offset and time, amx are the amplitude range.)
- 2020-10-28 08:59:58下载
- 积分:1
-
11087 统计逆序对
说明: Description
设a[0…n-1]是一个包含n个数的数组,若在ia[j],则称(i, j)为a数组的一个逆序对(inversion)。
比如 有5个逆序对。请采用类似“合并排序算法”的分治思路以O(nlogn)的效率来实现逆序对的统计。
一个n个元素序列的逆序对个数由三部分构成:
(1)它的左半部分逆序对的个数,(2)加上右半部分逆序对的个数,(3)再加上左半部分元素大于右半部分元素的数量。
其中前两部分(1)和(2)由递归来实现。要保证算法最后效率O(nlogn),第三部分(3)应该如何实现?
此题请勿采用O(n^2)的简单枚举算法来实现。
并思考如下问题:
(1)怎样的数组含有最多的逆序对?最多的又是多少个呢?
(2)插入排序的运行时间和数组中逆序对的个数有关系吗?什么关系?
输入格式
第一行:n,表示接下来要输入n个元素,n不超过10000。
第二行:n个元素序列。
输出格式
逆序对的个数。
输入样例
5
2 3 8 6 1
输出样例
5(Set a[0... N-1] is a n array containing n numbers. If there is a [i] > a [j] i n the case of I < j, then (i, j) is a n inversion pair of a array.
For example, has five reverse pairs. Please use the idea of "merge sorting algorithm" to achieve the statistics of inverse pairs with O (nlogn) efficiency.
The number of inverse pairs of a sequence of n elements consists of three parts:
(1) The number of reverse pairs in the left half, (2) the number of reverse pairs in the right half, (3) the number of elements in the left half is greater than that in the right half.
The first two parts (1) and (2) are implemented by recursion. To ensure the final efficiency of the algorithm O (nlogn), how should the third part (3) be implemented?
Do not use O (n ^ 2) simple enumeration algorithm to solve this problem.)
- 2019-01-07 23:52:06下载
- 积分:1
-
wenoeul
有限差分法求解欧拉方程,weno有限差分法求解欧拉方程。(Euler solved with weno)
- 2021-03-22 20:19:16下载
- 积分:1
-
fft_基2基4基8
说明: 基2基4基8以及分裂基的fft算法,代码效率很高。是难得一见的好代码。应用范围很广。(Radix-2-4-based 8 and split fft-based algorithm, a high code efficiency. Is a rare good code. Application of a very wide scope.)
- 2021-02-20 13:59:43下载
- 积分:1
-
water
汪德灌教授那本 计算水力学书后的 perisiman 隐式差分法源代码的 c++版本,我是在fortran代码中改过来的,书中的fortran代码有错误, 请较高人才得以突破 这个东西应该比较有用的吧, 尤其对刚接触这方面知识的 注释很详细哦 而且有输入文件(Professor Wang Deguan that the calculation of hydraulics perisiman after the implicit difference method source code c++ Version, I was changed from fortran code, and the book fortran code error, please talents to break with this higher things you should be more useful, especially for刚接触this regard very detailed knowledge of the Notes and the input file Oh)
- 2008-01-10 13:29:29下载
- 积分:1