-
使用分布傅立叶法计算非线性薛定谔方程。可以得到光纤非线性传输特性。...
使用分布傅立叶法计算非线性薛定谔方程。可以得到光纤非线性传输特性。-Fourier method using the distribution of nonlinear Schr枚dinger equation. Can be non-linear optical transmission characteristics.
- 2023-07-18 05:25:02下载
- 积分:1
-
TEST a program
gdsfgdfgd
fgdf
gd
g
df
gd
fg
dfg
- 2022-01-22 10:36:48下载
- 积分:1
-
基于Aloha的RFID的防碰撞仿真算法的相关论文以及代码实现
资源描述这是一个关于Aloha的防碰撞仿真算法,里面有相关的论文和源代码,亲测好用
- 2022-01-26 08:09:39下载
- 积分:1
-
固定边界条件下的三次样条插值matlab程序
固定边界条件下的三次样条插值matlab程序-fixed boundary condition;cubic spline
- 2022-09-24 05:55:02下载
- 积分:1
-
用于生物医学信号处理的视觉信号处理,胃心电信号…
为用Visual C++编写用于生物医学信号处理,胃电信号心电信号处理的的方法-to use Visual C preparation for biomedical signal processing, stomach ECG signal processing methods
- 2022-08-23 03:55:35下载
- 积分:1
-
This file implements a pid controller used to simulator cruise control in a car
This file implements a pid controller used to simulator cruise control in a car
The input is a throtle value between 0 - 100 ( read on P1 )
The output is the car s speed ( P2 - P0 ) -This file implements a pid controller used to simulator cruise control in a car The input is a throtle value between 0- 100 (read on P1) The output is the car s speed (P2- P0)
- 2023-07-17 12: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
-
matlab程序实现 最短路径问题 最短路径问题是图论研究中的一个经典算法问题, 旨在寻找图(由结点和路径组成的)中两结点之间的最短路径...
matlab程序实现 最短路径问题 最短路径问题是图论研究中的一个经典算法问题, 旨在寻找图(由结点和路径组成的)中两结点之间的最短路径-matlab program to achieve the shortest path problem shortest path problem is the study of graph theory, a classical algorithm for the problem, aimed at finding a plan (by the node and path composed of) two nodes of the shortest path between
- 2022-04-12 10:43:20下载
- 积分:1
-
hough椭圆拟合代码,非常好用
资源描述椭圆拟合(高斯分解和奇异值分解(很准确)两种)
- 2023-07-20 22:35:03下载
- 积分:1
-
图四染色问题map.in为输入文件,文本格式的地图…
地图四染色问题 map.in为输入文件,文本格式,地图的邻接矩阵-map map.in four staining problem for the importation documents, text format, maps the adjacency matrix
- 2022-05-19 22:04:37下载
- 积分:1