-
有限元的分析程序,对于初学有限元在结构中的应用很好用
有限元的分析程序,对于初学有限元在结构中的应用很好用-Finite element analysis program for learning the structure of finite element in the application of good use
- 2022-03-06 10:17:20下载
- 积分:1
-
两个 3 X 3 矩阵相乘的 c 语言程序
这是两个3 * 3 矩阵相乘的 C源代码。欢迎下载、试用。谢谢大家的支持。
- 2023-04-11 16:20:04下载
- 积分:1
-
动态规划算法求字符串的相似性(编辑距离)
动态规划算法求字符串的相似性(编辑距离)-dynamic programming algorithms to find the similarity of the string (edit distance)
- 2022-04-18 00:03:04下载
- 积分:1
-
MFC下实现MD5加密
MFC下实现加密算法MD5,可以对字符串跟文件进行加密.值得一看
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.
License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.
These notices must be retained in any copies of any
- 2022-03-04 02:53:21下载
- 积分:1
-
研究生期间上《数值计算方法》课的作业,所有代码都是C语言实现并调试通过,现在上传为大家服务。这是Seide迭代算法...
研究生期间上《数值计算方法》课的作业,所有代码都是C语言实现并调试通过,现在上传为大家服务。这是Seide迭代算法-Seide iterative algorithm with C language
- 2023-04-17 11:45:03下载
- 积分:1
-
统计逆序对
资源描述
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
- 2022-01-25 23:20:18下载
- 积分:1
-
关于约束非线性规划的求解器,可用于学习和实际问题求解。
关于约束非线性规划的求解器,可用于学习和实际问题求解。-On the binding of non-linear programming solver can be used for learning and practical problem solving.
- 2022-03-24 20:16:01下载
- 积分:1
-
数值分析中的N皇后问题,程序中含输入/显示界面,N的数值可在界面中自行设定。...
数值分析中的N皇后问题,程序中含输入/显示界面,N的数值可在界面中自行设定。-Numerical Analysis of N Queen
- 2022-07-02 00:25:13下载
- 积分:1
-
三次样条曲线拟合 这个也是数学方法中的常用计算程序 学过的人都知道的...
三次样条曲线拟合 这个也是数学方法中的常用计算程序 学过的人都知道的-cubic spline curve fitting This is a mathematical method of calculation procedures used to learn the know
- 2022-08-20 07:36:50下载
- 积分:1
-
mumford matlab code
mumford matlab code-mumford matlab code..............
- 2022-11-25 17:10:03下载
- 积分:1