检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:陈文[1] 王琳燕[1] CHEN Wen;WANG Lin-yan(Fnzhon Polytechnic,Fnzhon 350108,China)
机构地区:[1]福州职业技术学院,福州350108
出 处:《信息技术》2018年第11期34-36,43,共4页Information Technology
基 金:福建省教育厅中青年教师教育科研项目(JAT171068)
摘 要:中位数求法通常利用排序算法获取,其时间复杂度达到O(n*ln n)甚至O(n^2)。对于数据流,逐点利用排序法求中位数序列,时间复杂度更高,当数据量很大时,运行极其费时,文中提出利用堆结构获取数据流中位数序列的方法。描述基本思想,分析堆的构造方法,详细介绍算法实现过程。其时间复杂度仅为O(n*ln n),较常用的排序算法有较大的改进。最后,通过实验进一步证实该算法的优越性。Usually,the sorting method is used to get the median,and its time complexity is O(n*ln n)or even O(n^2).When the data comes as stream,it need to be calculated a series of median values,and the complexity will be even higher when sorting the array every time,which is time consuming.A method using the heap structure to calculate the median series for a data stream is proposed in this paper which introduces the basic idea of the method,analyzes heap constructing and the process of its implementation in detail.The time complexity is only O(n*ln n),which is a considerable improvement of the usual sorting method.Finally,the superiority of the algorithm is confirmed by experiments.
分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222