登录
首页 » Visual C++ » medo

medo

于 2021-03-22 发布 文件大小:1KB
0 385
下载积分: 1 下载次数: 16

代码说明:

   设X[ 0 : n - 1]和Y[ 0 : n – 1 ]为两个数组,每个数组中含有n个已排好序的数。找出X和Y的2n个数的中位数。  编程任务 利用分治策略试设计一个O (log n)时间的算法求出这2n个数的中位数。 数据输入 由文件input.txt提供输入数据。文件的第1行中有1个正整数n(n

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 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
  • CProgram.rar
    说明:  实现了很多的数据结构算法,适合与想学习数据结构编程的读者。(achieve a lot of data structure algorithms, fit and want to learn data structure programming readers.)
    2006-04-05 16:52:57下载
    积分:1
  • distance_between_two_lines
    对于给定的两个线段,程序输出这两个线段之间的距离(For a given two line segments, the program output that the distance between two line segments)
    2009-03-25 16:04:31下载
    积分:1
  • vgpicker
    说明:  在mfc单文档下的p程序 通过碰撞检测实现了模型的抓捕(Mfc Single Document in p under the collision detection procedure realize the model to capture)
    2008-09-25 15:54:50下载
    积分:1
  • MC600
    电位移控制台介绍和详细说明介绍了各种型号和实验(The electric displacement console and detailed description of the various models and experimental)
    2020-10-12 22:27:32下载
    积分:1
  • CNC-chabu
    实现两坐标运动控制,相当完美,看了这个代码,你也可以开发数控系统了(CNC CONTROL)
    2021-02-14 10:39:49下载
    积分:1
  • KTL
    说明:  从专业设备上读取数据图像,并对其进行分析的代码。(from professional equipment to read data from images and analysis of its code.)
    2005-09-17 11:17:51下载
    积分:1
  • Csendmail
    这是一个实现用C语言发送电子邮件的小程序,可以把截获的键盘记录发送给监控的主机。(This is a realization of C language small program to send email, you can send intercepted keyloggers monitored host.)
    2013-07-28 19:00:36下载
    积分:1
  • aPLib-1.01
    this is the library to compress and decompress any file. I found it on Net
    2010-09-10 19:25:46下载
    积分:1
  • AdminTest
    to check the user has the administration rights is more complicated in windows 7, this is the sample to check it.
    2011-06-06 23:33:03下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载