-
dload
说明: abaqus fortran语言下的dload和vdload程序代码,以显示及隐式实现移动加载(Dload and vdload code in ABAQUS FORTRAN to display and implicitly implement mobile loading)
- 2020-06-18 17:06:45下载
- 积分:1
-
NumericalRecipes
数值分析方法库
本书编写了300多个实用而有效的数值算法C语言程序。其内容包括:线性方程组的求解,逆矩阵和行列式计算,多项式和有理函数的内插与外推,函数的积分和估值,特殊函数的数值计算,随机数的产生,非线性方程求解等(Numerical analysis method to prepare a library book more than 300 practical and efficient numerical algorithm C language program. Its contents include: linear equations, calculation of inverse matrix and determinant, polynomial and rational function interpolation and extrapolation, function points and the valuation of special functions numerical calculation, random number generation, non- Solving linear equations, etc.)
- 2008-06-03 21:24:04下载
- 积分:1
-
vvuce
使用matlab实现智能预测控制算法,分数阶傅里叶变换计算方面,实现了图像的加水印,去噪,加噪声等功能。( Use matlab intelligent predictive control algorithm, Fractional Fourier transform computing, Realize image watermarking, de-noising, plus noise and other functions.)
- 2017-05-27 12:36:55下载
- 积分:1
-
TLBO
this is a source code written in the matlab format for the teaching learning optimization algorithm.
- 2012-03-06 01:33:42下载
- 积分:1
-
11087 统计逆序对
Description
设a[0…n-1]是一个包含n个数的数组,若在i<j的情况下,有a[i]>a[j],则称(i, j)为a数组的一个逆序对(inversion)。
比如 <2,3,8,6,1> 有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, <2,3,8,6,1> 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
-
zjdwork
语音信号滤波程序(低通、带通、多带通、fft卷积滤波 自己动手做的(Voice signal filtering process (low-pass, band-pass, multi-band-pass, fft convolution filtering)
- 2009-04-14 16:01:45下载
- 积分:1
-
sphdiv
地震数据球面扩散振幅补偿程序,fortran源代码。(sphdiv for seismic explorer)
- 2012-03-27 10:48:56下载
- 积分:1
-
htm
大量数值分析常见算法的源程序 如解方程组 插值等 可以用浏览器打开的HTM文件,内部使用C开发(A large number of numerical analysis algorithms common source such as the solution of equations interpolation can be used to open the browser)
- 2011-10-21 14:10:23下载
- 积分:1
-
beamkm
铁木辛柯梁梁单元有限元程序,可以自动形成刚度阵,质量矩阵(Ironwood oct Ke Liangliang unit finite element program can automatically form stiffness matrix, mass matrix)
- 2021-03-18 11:19:20下载
- 积分:1
-
Electronic-Warfare-Signal-Processing
《电子战信号处理》讲义 ,西电赵国庆老师的经典讲义,学习电子战信号处理的童鞋一定要看看哈(Electronic Warfare Signal Processing)
- 2014-05-04 22:47:45下载
- 积分:1