摘要
本文提出一个在共享存储多处理机系统上实现的快速、有效的并行排序算法:将长度为n的待排序数据划分成p个长度为n/p的子序列,引入散列技术并行地对这p个子序列的数据进行二次散列排序,这一阶段所需的平均时间为O(n/p);最后并行地将p个有序子序列归并成一个长度为n的有序序列,归并阶段所需的时间为O(n-n/p)。整个排序算法的并行执行代价为O(np)。本排序方法可以拓广到网络并行机群环境。
An efficient parallel sorting algorithm,which is implemented on a shared memory multiprocessor system,is presented.The sequence that has n elements to be sorted are partitioned to p subsequences(length n/p ).First the p subsequences are sorted in parallel by 2 hashing,its average time is O( n/p ).Then the p sorted subsequences are merged in parallel to a sorted sequence(length n ),its time is O( n-n/p ).The total parallel execution cost is O( np ).This scheme can be extended to the network environment of parallel computers.
出处
《计算机工程与科学》
CSCD
1998年第4期42-45,共4页
Computer Engineering & Science
基金
广西自然科学基金
广西教委科研基金
关键词
排序
散列
归并
并行算法
计算机
sorting,hashing,merging,parallel algorithm.