-
风剖面及湍动能和耗散率
说明: 主要用于Fluent 中风剖面、湍流剖面以及耗散率剖面的开发,应用的是日本的规范。(It is mainly used for the development of fluent stroke profile, turbulence profile and dissipation rate profile, and it is applied to the specifications of Japan.)
- 2020-12-15 18:29:13下载
- 积分:1
-
FENZHI
分支界限费用矩阵的说明文档,非常实用,建议下载哦(Branch line cost matrix documentation, very practical, it is recommended to download Oh)
- 2013-09-13 14:24:50下载
- 积分: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
-
OptimizationofMechanicalDesign
使用惩罚函数法对机械设计中的问题进行优化处理(The use of penalty function method for mechanical design optimization problems deal with)
- 2008-03-05 12:00:39下载
- 积分:1
-
pyVMD_any
变分模态分解的python版本,个人根据MATLAB版本译制而成(Python version of variational mode decomposition)
- 2018-03-08 08:27:26下载
- 积分:1
-
LBM 封闭腔体自然对流
封闭方腔自然对流格子布尔兹曼程序,在瑞利数为2000及4000时的两种算例,包括说明文字。(Closed square cavity natural convection lattice Boltzmann method)
- 2021-03-19 05:29:19下载
- 积分:1
-
统计学习方法李航
说明: 统计学习经典教材,面试必备,详细介绍支持向量机、Boosting、最大熵、条件随机场等十个统计学习方法。(Classic textbooks for statistical study are essential for interviews)
- 2020-06-21 11:20:02下载
- 积分:1
-
非线性振动
说明: 非线性振动.pdf 刘延柱编写
恢复力与位移不成正比或阻尼力不与速度一次方成正比的系统的振动。尽管线性振动理论早已相当完善,在工程上也已取得广泛和卓有成效的应用,但在实际问题中,总有一些用线性理论无法解释的现象。一般说,线性模型只适用于小运动范围,起出这一范围,按线性问题处理就不仅在量上会引起较大误差,而且有时还会出现质上的差异,这就促使人们研究非线性振动。(Nonlinear Vibration. Compilation of PDF Liu Yanzhu)
- 2020-11-23 20:09:34下载
- 积分:1
-
RGB a YCbCr
There is an algorithm that converts RGB Color to YCbCr
- 2018-05-18 09:14:27下载
- 积分:1
-
particle_filter-master
说明: 实现粒子滤波。包含运行模型,测量模型,重采样和归一化(Implement particle filter. Including operation model, measurement model, resampling and normalization)
- 2020-05-18 13:56:33下载
- 积分:1