-
SM3
python编写SM3密码杂凑算法,测试字符串abc, abcd*16(written in python SM3 password hash algorithm, the test string abc, abcd.* 16)
- 2012-08-04 15:34:55下载
- 积分:1
-
XFEM
扩展年有限元的相关文献,内含7篇综述,完整概括扩展有限元的发展。做这个方面的可以看一看。(Extended Finite element of the relevant literature, containing 7 review, complete the development of finite element summed expansion. So this area can take a look.)
- 2020-12-07 10:39:22下载
- 积分: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
-
AIA
基于最小二乘法求解相移量算法,最小二乘求相移图相位(phase shift algorithm based on the least squares method, least squares seeking phase shift diagram phase)
- 2013-04-08 18:38:11下载
- 积分:1
-
Douglas_Peucker
Douglas-Peucker algorithm for a 2-dimensional data with example in matlab.
- 2012-12-24 04:46:23下载
- 积分:1
-
GRKT10
通过C语言,实现龙格库塔法,用四阶龙格库塔法求解一阶微分方程组。(Through the C language, the realization of Runge-Kutta method with fourth-order Runge-Kutta method for solving first-order differential equations.)
- 2021-03-17 22:19:21下载
- 积分:1
-
Tripleinvertedpendulumweightedfuzzyneuralnetworkco
为了提高三级倒立摆系统控制的响应速度和稳定性,在设计Mamdani 型模糊推理规则控制器控制倒立摆系统稳定的基础上,
设计了一种更有效率的基于Sugeno 型模糊推理规则的模糊神经网络控制器。该控制器使用BP 神经网络和最小二乘法的混
合算法进行参数训练,能够准确归纳输入输出量的模糊隶属度函数和模糊逻辑规则。通过与Mamdani 型控制器的仿真对比,
表明该Sugeno 型模糊神经网络控制器对三级倒立摆系统的控制具有良好的稳定性和快速性,以及较高的控制精度。(In order to improve the three-level control of inverted pendulum system response speed and stability, in the design of Mamdani-type fuzzy inference rules of the system controller to control the stability of inverted pendulum on the basis of a more efficient design based on Sugeno-type fuzzy inference rules of fuzzy neural network controller. The controller is the use of BP neural network and hybrid least squares training algorithm parameters can be accurately summed up the amount of input and output fuzzy membership function and fuzzy logic rules. Mamdani-type controller with a simulation comparison shows that the Sugeno-type fuzzy neural network controller for the three-tier control of inverted pendulum system with good stability and fast, as well as a higher control precision.)
- 2009-05-30 12:46:16下载
- 积分:1
-
P-value
calcule de la p-value en c#
- 2011-11-10 03:17:06下载
- 积分:1
-
arc-length-theory
有限元弧长法控制计算的原理,中文英文的都有,并介绍了具体程序的流程图(Finite element calculation of arc-length method control principle, Chinese English have, and describes specific procedures flowchart)
- 2013-10-19 10:50:45下载
- 积分:1
-
归档
说明: 资源共享两阶段dea模型matlab实现(Two stage DEA model of resource sharing based on MATLAB)
- 2021-04-09 20:08:59下载
- 积分:1