-
medo
设X[ 0 : n - 1]和Y[ 0 : n – 1 ]为两个数组,每个数组中含有n个已排好序的数。找出X和Y的2n个数的中位数。 编程任务 利用分治策略试设计一个O (log n)时间的算法求出这2n个数的中位数。 数据输入 由文件input.txt提供输入数据。文件的第1行中有1个正整数n(n<=200),表示每个数组有n个数。接下来的两行分别是X,Y数组的元素。结果输出 程序运行结束时,将计算出的中位数输出到文件output.txt中(Let X [0: n- 1] and Y [0: n- 1] for the two arrays, each array containing the n number has been sorted. 2n X and Y to identify the number of digits. programming tasks using the divide and conquer strategy try to design an O (log n) time algorithm to calculate this median number 2n. Data input by the input data provided input.txt file. The first line in the file has a positive integer n (n < = 200), that there are n numbers of each array. The next two lines are the X, Y array elements. The end result is output program runs, the calculated median output to file output.txt)
- 2021-03-22 16:29:16下载
- 积分:1
-
所有模块资料
msp430各模块程序,基于一些外设的程序模块例程(MSP430 module program, based on some peripheral program module routines)
- 2020-06-25 09:20:02下载
- 积分:1
-
hyperedit_demo
multiple hyperlinks with syntax highlighting for edit control.
- 2020-06-21 16:00:01下载
- 积分:1
-
6037414
修改默认的滚动条样式,类似XP风格,并有动感,()
- 2018-04-27 16:09:08下载
- 积分:1
-
TestLev
说明: 可进行cosa格式水准网数据平差 ,闭合差计算, 粗差探测(It can carry out data adjustment, closure error calculation and gross error detection of cosa format leveling network.)
- 2019-03-03 14:43:29下载
- 积分:1
-
classicyuanma
C++, 经典 , 源码, 下载,保留,C++, 经典 , 源码,(C++ classicclassic)
- 2010-03-06 14:47:58下载
- 积分:1
-
DarkUI
说明: c#框架 可以学习使用,建议参看看看,谢谢大家(framework can be learned to use, it is recommended to see, thank you)
- 2020-07-15 09:21:47下载
- 积分:1
-
shukongAD
通过按键控制电压输出并显示,使用了AD0808芯片(By controlling the voltage output and displayed key)
- 2017-04-12 20:53:48下载
- 积分:1
-
maywrjpe
此程序的主要功能是模拟了操作系统的死锁的基本原理,是我写的一个测试,可能含有bug,(The program s main function is to simulate the operating system, the basic principle of deadlock is a test, I wrote that may contain bugs,)
- 2017-04-12 02:58:25下载
- 积分:1
-
AD9910
说明: 用MSP430驱动AD9910,实现正弦、锯齿、方波输出和扫频(Driving AD9910 with MSP430 to achieve sinusoidal, sawtooth, square wave output and sweep frequency)
- 2020-06-20 08:20:01下载
- 积分:1