首页 | 本学科首页   官方微博 | 高级检索  
     

基于多线程归并排序算法设计
引用本文:孙琳琳,侯秀萍,朱波,孙士明,高灿. 基于多线程归并排序算法设计[J]. 吉林大学学报(信息科学版), 2015, 33(1): 105-110. DOI: 10.3969/j.issn.1671-5896.2015.01.017
作者姓名:孙琳琳  侯秀萍  朱波  孙士明  高灿
作者单位:1. 长春工业大学 计算机科学与工程学院, 长春 130012; 2. 苏州大学 附属第一医院, 江苏 苏州 215006
基金项目:国家科技部863高技术基金资助项目
摘    要:为解决传统递归方式的归并排序算法串行执行效率低的问题, 使用数据依赖关系分析方法对归并排序算法进行并行性分析。通过分析发现算法本身具有并行的特征, 在多核处理器下使用OpenMp编译制导语句对算法进行直接并行化处理。在数据量较大的情况下, 为了使算法执行的速度更快, 在多核处理器系统中设置多个线程, 并将序列分成多个组, 每个线程操作一组数据, 最后对多个局部有序的结果进行逐一合并。实验验证结果表明, 该并行化算法可使执行速度提高50%以上。

关 键 词:归并排序  多核多线程  OpenMp编译制导语句  数据依赖关系  并行化  
收稿时间:2014-04-09

Merge Sort Algorithm Design Based on Multi Thread
SUN Linlin,HOU Xiuping,ZHU Bo,SUN Shiming,GAO Can. Merge Sort Algorithm Design Based on Multi Thread[J]. Journal of Jilin University:Information Sci Ed, 2015, 33(1): 105-110. DOI: 10.3969/j.issn.1671-5896.2015.01.017
Authors:SUN Linlin  HOU Xiuping  ZHU Bo  SUN Shiming  GAO Can
Affiliation:1. School of Computer Science and Engineering, Changchun University of Technology, Changchun 130012, China;2. The First Affiliated Hospital, Sooc
how University, Suzhou 215006, China
Abstract:In order to solve the traditional recursively merge sort algorithm serial execution efficiency of general problems, we used data dependence analysis methods on recursive merge sortalgorithm parallelism analysis. The analysis shows that the algorithm itself has the characteristics of parallel, and multi-core processors can be used to compile OpenMp direct guidance statement on parallel processing algorithms. In case of large amount of data, use multiple threads in a multi processor system, divide the sequence into several groups and set each thread operation ofa group of data in order to make the algorithm performs faster. Finally, the research merged a plurality of partial results which were ordered. Experiment result shows that this method of parallel algorithm can improve the speed of execution of the algorithm.
Keywords:merge sort  multicore and multithread  OpenMp  data dependence  parallelization
本文献已被 万方数据 等数据库收录!
点击此处可从《吉林大学学报(信息科学版)》浏览原始摘要信息
点击此处可从《吉林大学学报(信息科学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号