设计算法实现在一个具有在n各互不相同元素的数组A[1…n]中找出所有前k个最小元素的问题,这里k不是常量,即它是输入数据的一部分。要求算法的时间复杂性为Θ(n)。
上传时间: 2013-12-21
上传用户:zhliu007
%BIQPBOX Bisection reflective line search for sqpbox % [nx,nsig,alpha] = BIQPBOX(s,c,strg,x,y,sigma,l,u,... % oval,po,normg,DS,mtxmpy,data,H) % returns the new feasible point nx, the corresponding sign vector nsig, % and the step size of the unreflected step, alpha. % Copyright (c) 1990-98 by The MathWorks, Inc. % $Revision: 1.2 $ $Date:
标签: BIQPBOX reflective Bisection search
上传时间: 2013-12-17
上传用户:sk5201314
Input The input consists of two lines. The first line contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second line. Output There are two lines in the output. The first line gives the minimum values in the window at each position, from left to right, respectively. The second line gives the maximum values. Sample Input 8 3 1 3 -1 -3 5 3 6 7 Sample Output -1 -3 -3 -3 3 3 3 3 5 5 6 7
上传时间: 2014-12-21
上传用户:hongmo
用 MATLAB 编写的 模糊C均值聚类法源程序 和模糊k均值聚类法源程序,比较实用。
上传时间: 2013-12-01
上传用户:liuchee
k-means som 层次聚类 算法比较
上传时间: 2015-10-29
上传用户:拔丝土豆
这是一个简单的用B/S写的留言板小程序,用jsp和javaBean实现的
上传时间: 2013-12-29
上传用户:yulg
基于 C/S 模式的网上购物系统,数据库为SQLServer,功能蛮全的。希望对大家学习java与数据库有帮助。
上传时间: 2014-01-24
上传用户:三人用菜
目標為把收集的資料分割成k 個子集合,每一個子集合為一個群聚(cluster). 從收集的資料中隨機選定k 個物件
上传时间: 2013-12-21
上传用户:王楚楚
fg jklhj ghl jtojhu klg dioj ioty jo[jhd j ghl ityjdo jgo rj ao[gj r dj k h fhg
上传时间: 2015-10-30
上传用户:cccole0605
用DELPHI开发的C/S结构的聊天系统,支持多人聊天
标签: DELPHI
上传时间: 2013-12-18
上传用户:waitingfy