-
Burgers
用麦克麦考方法求解一维burgers方程的matlab代码(By Mike McCaw method for solving one-dimensional burgers equation matlab code)
- 2021-02-13 14:59:49下载
- 积分:1
-
mie-uu36
合成孔径雷达(SAR)目标成像仿真,多姿态,多角度,有不同光照,小波包分析提取振动信号中的特征频率。( Synthetic Aperture Radar (SAR) imaging simulation target, Much posture, multi-angle, have different light, Wavelet packet analysis to extract vibration signal characteristic frequency.)
- 2017-04-09 13:35:34下载
- 积分:1
-
EedffazipD
EDFA的掺铒光纤长度模拟计算,附3篇相关论文,330mw的980nm泵泵浦,3db的泵浦吸收,12m最佳长度已经的到验证,可作为EDFA设计参考
(EDFA erbium-doped fiber length simulation of three related papers, 330mw of 980nm pump pump pump 3db absorption 12m optimum length has been to verify, can be used as the EDFA design reference)
- 2012-08-05 18:09:17下载
- 积分:1
-
RNX2GTEX
说明: 将GNSS RINEX数据转换为电离层总电子含量(GTEX格式)(Convert GNSS RINEX data to Ionospheric Total Electron Content (GTEX format))
- 2020-10-08 12:12:21下载
- 积分:1
-
t_tide_v1.2beta
潮流调和分析程序,非常实用,里面有说明文件,基本原理是采用最小二乘法来求解超定矩阵,各种参数用来控制选择分潮,间隔时间等。(harmonic analysis)
- 2020-06-29 23:40:02下载
- 积分:1
-
NCGC
内插高程点,CASS不提供插求高程点功能,我们手工输入容易出错,且极度不方便,。
此程序用VBA编写,界面操作,按设定的比例自动计算需内插的个数并注记。(Interpolated elevation points)
- 2012-08-27 15:43:00下载
- 积分:1
-
01
说明: 此文件为源代码,经过多次验证可行。将代码输入lingo就可以运行(Immune algorithm to solve the maximum clique problem source code of this file, feasible after several validation. Matlab code input can run.)
- 2013-02-01 16:58:53下载
- 积分:1
-
mat
说明: 二分法求方程数值解,程序含说明性文字,精度可调(The numerical solution of the equation is obtained by dichotomy. The program contains explanatory text and the precision is adjustable)
- 2020-11-11 16:23:38下载
- 积分: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
-
singnui
BP神经网络的整个训练过程,matlab编写的元胞自动机,独立成分分析算法降低原始数据噪声。( The entire training process BP neural network, matlab prepared cellular automata, Independent component analysis algorithm reduces the raw data noise.)
- 2016-09-15 11:20:27下载
- 积分:1