-
国内某B2C电子商务网站的数据集
电商的数据集,可用于做数据分析 平台搭建(The data set of e-commerce can be used to build data analysis platform.)
- 2021-02-01 12:40:00下载
- 积分:1
-
chan
二维情况的chan定位算法,1994年原版论文代码实现,可以支持远近和linear nonlinear四种模式(2 dimension chan algorithm, TDOA localization. Including near, far field and linear nonlinear sensor array)
- 2017-12-27 13:37:47下载
- 积分:1
-
ISM
自己编写的求可达矩阵,层次划分 代码.使用时,替换已有矩阵,即可运算!
(I have written for reachability matrix, the level of classified code. Use, replace the existing matrix, computing can be!)
- 2008-03-05 22:11:14下载
- 积分:1
-
ren_GPC-PID
广义预测控制算法仿真,通过最小二乘法对系统进行在线辨识,并与PID对比,能运行的(Generalized predictive control algorithm simulation, through the of least squares method for on-line identification system, can run)
- 2012-05-02 17:57:18下载
- 积分: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
-
2DPCA.m.tar
经典的人脸识别算法:2Dpca的实现,matlab实现环境。(Classical face recognition algorithms: 2Dpca the realization)
- 2009-02-12 12:52:03下载
- 积分:1
-
userfc
ANSYS二次开发自定义破坏准则子程序(ANSYS subroutine)
- 2021-03-28 18:29:11下载
- 积分:1
-
xianshi
偏微分方程数值解上机实习 运用古典显式差分格式求解二维扩散方程的初边值问题 运用P-R差分格式求解二维扩散方程的初边值问题
- 2020-11-11 10:19:45下载
- 积分:1
-
7756
感应双馈发电机系统的仿真,基于分段非线性权重值的Pso算法,计算多重分形非趋势波动分析matlab程序。( Simulation of doubly fed induction generator system, Based on piecewise nonlinear weight value Pso algorithm, Calculation multifractal detrended fluctuation analysis matlab program.)
- 2017-05-12 16:30:34下载
- 积分:1
-
sou-V6.2
BP神经网络用于函数拟合与模式识别,研究生时的现代信号处理的作业,包括数据分析、绘图等等。( BP neural network function fitting and pattern recognition, Modern signal processing jobs when the graduate, Data analysis, plotting, etc..)
- 2017-05-15 16:43:00下载
- 积分:1