-
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
-
Desktop
调度问题的回溯算法,算法中的经典问题。问题描述:假设有n个任务由k个可并行工作的机器完成。完成任务i需要的时间为ti。试设计一个算法找出完成这n个任务的最佳调度,使得完成全部任务的时间最早。(Scheduling problem backtracking algorithm is the classic problem. Problem Description: Suppose there are n-task by the k-parallel machine can be completed. The time required to complete the task i is ti. Try to design an algorithm to find completing these n-best task scheduling, making the earliest time to complete all tasks.)
- 2010-02-19 23:31:11下载
- 积分:1
-
674569
说明: PPC开发的代码, 希望我们大家共同努力共同分享,请大家多多指教,互相帮助(PPC development code, I hope we all work together to share, please advise and help each othe)
- 2019-01-04 05:55:53下载
- 积分:1
-
IsSubStr
从控制台输入一个字符串,然后再输入想要查找的字符串,判断要查找的字符串是不是在第一次输入的字符串中出现过。(find substring in a source string)
- 2015-11-17 11:23:43下载
- 积分:1
-
codlwhqchsource
这是基于systemview平台的cdma下行链路仿真源码, 能满足cdma开发过程中的仿真需要,(This is the cdma downlink simulation source code based on systemview platform, which can meet the simulation needs in the cdma development process.)
- 2019-01-05 07:37:36下载
- 积分:1
-
49808171
用冲激响应不变法和双线性变换法设计IIR的MATLAB程序(Design of MATLAB Program for IIR by Impulse response Invariant method and Bilinear Transformation method)
- 2019-01-05 03:30:43下载
- 积分:1
-
changevideomode
自己写的一个检测某个程序是否运行来改变系统分辨率的控制台程序(Writing own a Detect whether a program is running to change the system console resolution procedures)
- 2009-02-26 15:45:57下载
- 积分:1
-
347013
OPNET 无线仿真 PPT + 源码 好好学习吧(OPNET wireless simulation PPT source code)
- 2019-01-04 05:14:51下载
- 积分:1
-
AddressBook
能实现增加,搜索,删除,计数的学生通讯录(本科C++课程设计)(To achieve increase, search, delete, count the student address book (undergraduate C++ curriculum design))
- 2017-07-05 15:04:31下载
- 积分:1
-
BY2003
说明: 在程序加载时出现,可以点击画面跳过。
2.登录窗口 只有在输入正确的用户名的密码时,点击登录,才能登录。
3.主体窗口 主体窗口中显示的是当天的话费清单。
4.显示窗口 显示窗口中显示的是当前的各路中断线的状态。
5.打印窗口 可以打印当天的话费清单。
6.退出程序 退出程序。
7.当前费用 可以结算出从当天的00:00:00到些时的费用总和,以及通话时第总和。
(in loading procedures there, click on the picture to skip. 2. Login window only in the correct user name password, click on Login can be logged. 3. The main window of the main window shows the list of the day's calls. 4. Show window display window shows the current rostrum were interrupted state. 5. Print window and print the same day the calls list. 6. Exit exit. 7. The current cost of clearing it out of 00:00:00 from the day when some of the costs of the total, and its total telephone conversation.)
- 2006-03-10 17:23:33下载
- 积分:1