-
ztf02
将屏幕不断保存为avi文件的程序,可以用于制作程序演示(screen constantly kept as avi document procedures can be used for the production process demonstration)
- 2007-03-09 11:43:34下载
- 积分:1
-
[VXL-K55]TC301_Group19_Week12_130506
Realtime clock and motor controler 16f877A
- 2013-11-21 11:08:17下载
- 积分:1
-
PLCOperator
与NJ系列PLC通讯上位机软件给予指令位置,与PLC 通讯并发送位置指令,伺服电机为负载(Communication with NJ series PLC upper computer software gives instruction position, communicates with PLC and sends position instruction. Servo motor is the load.)
- 2020-06-25 04:40:02下载
- 积分:1
-
simulink
全面、专业的介绍matlab中模块mulink模块的使用方法,列举的例题包含操作流程,非常实用。(Comprehensive, professional introduction matlab in Ostrava mulink modules to use, citing the examples include operating procedures, very practical.)
- 2013-07-21 16:43:57下载
- 积分:1
-
Nokia-5110LCD-panel-data
诺基亚5110LCD&PCD8544IC编程,包括Datasheet、驱动程序例子和应用等等。(Nokia 5110 LCD & PCD8544IC programming, including Datasheet, driver examples and application and so on.)
- 2013-12-06 15:21:43下载
- 积分:1
-
万年历
适用于用简单的C语言设计,完成基本的万年历功能
- 2023-05-12 01:00:04下载
- 积分:1
-
LDPC译码算法
介绍了LDPC译码的基本原理,以及一些算法!信道编码的译码算法是决定编码性能和应用前景的一个重要因素,尤其是在长码的条件下,译码算法的复杂度决定了编码的前途。通常分组码的译码长度与码长成指数关系,码长增加到一定的程度后,复杂度的增加将是不可控制的,无法得到实际的应用。LDPC码则不同,由于其奇偶校验矩阵的稀疏性,使它存在高效的译码算法,其译码复杂度与码长成线性关系,克服了分组码在码长比较长时面临的巨大译码计算复杂度问题。
- 2022-05-07 12:12:54下载
- 积分:1
-
html网站模板例子源码下载
html网站模板例子源码下载
- 2015-05-13下载
- 积分:1
-
photocp
批量文件复制改名
因需要把大量照片批量复制然后改名,但是搜索了半天没有找到合适的软件,于是搬出来N年没有写过的vc 6.0 ,寥寥草草几十行,做了一个简单的不能再简单的小程序。通过在程序的当前目录下建立复制文件和目标文件的对应列表,执行程序实现文件复制。代码可以再丰富。很简单,但是不好找,bat文件我又没玩过,还是用c简单写写,放上来有用到的可以参考,可以使用。(Batch rename files because of the need to bulk copy a lot of photos and then renamed, but the search for a long time did not find the right software, then move out to N years did not write vc 6.0, only a handful of hastily dozens of lines, made a simple no longer simple applet. Through the program created under the current directory to copy files and object files corresponding list, perform file copy program. Code can be abundant. Very simple, but not easy to find, bat file I did not played, or c simple writing, Fangshanglai useful to refer to, can be used.)
- 2013-06-20 15:49:36下载
- 积分: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