DIAGONAL COMMUTATION MODEL FOR PARALLEL SORTING OF DATA ARRAYS

Author(s):  
Е.А. Титенко ◽  
Е.В. Талдыкин ◽  
В.Л. Бурковский

Oбъект исследования - алгоритмы параллельной сортировки с применением базовой операции «сравнение-обмен». Цель исследования - сокращение шагов работы алгоритма сортировки массива данных за счет уменьшения количества промежуточных перестановок элементов массива. Цель достигается разработкой оригинальной схемы коммутаций элементов массива. Данная схема составляет основу модели диагональных коммутаций пар элементов массива. Массив имеет 2d-представление, что позволяет объединить в пары элементы из его различных половин. За счет 2d-представления массива образуемые пары элементов позволяют уменьшить количество перестановок. Новизна модели диагональных коммутаций состоит в том, что операции «сравнение-обмен» параллельно выполняются на неконфликтующих парах элементов, взятых из различных половин массива. Это свойство модели позволяет «прыжками» перемещать элемент в необходимую позицию массива. Модель диагональных коммутаций объединена с известной моделью четно-нечетной сортировки. В результате объединения был получен алгоритм параллельной сортировки с гибридной схемой коммутации. Эта схема реализует на четных шагах предложенную модель, а на нечетных шагах - модель четно-нечетной сортировки. Моделирование алгоритмов четно-нечетной сортировки и гибридной сортировок показало преимущество разработанной модели. Расширение четно-нечетной сортировки моделью диагональных коммутаций позволяет сократить среднее число шагов сортировки. Кроме четно-нечетной сортировки, модель диагональных коммутаций применима для алгоритмов параллельной сортировки, использующих базовую операцию «сравнение-обмен» - сортировки Батчера, Шелла, слиянием The object of the research is parallel sorting algorithms using the basic operation "compare-swap". The aim of the research is to reduce the steps of the algorithm for sorting the data array by reducing the number of intermediate permutations of the array elements. The goal is achieved by developing an original switching circuit of the array elements. This circuit forms the basis of the model for diagonal commutation of pairs of array elements. The array is 2D, which allows one to pair elements from its different halves. Due to the 2D representation of the array, the formed pairs of elements allow reducing the number of permutations. The novelty of the diagonal commutation model is that the “compare-exchange” operations are performed in parallel on non-conflicting pairs of elements taken from different halves of the array. This property of the model allows one to "jump" the element to the desired position in the array. The diagonal commutation model is combined with the well-known odd-even sorting model. The combination resulted in a parallel sorting algorithm with a hybrid switching scheme. This scheme implements the proposed model at even steps, and the even-odd sorting model at odd steps. Modeling algorithms for odd-even sorting and hybrid sorting showed the advantage of the developed model. Extension of even-odd sorting by the diagonal commutation model allows to reduce the average number of sorting steps by 6-10%. In addition to odd-even sorting, the diagonal commutation model is applicable for parallel sorting algorithms using the basic comparison-exchange operation - Butcher, Shell, merge sorting

2020 ◽  
Vol 11 (2) ◽  
pp. 95-102
Author(s):  
I Nyoman Aditya Yudiswara ◽  
Abba Suganda

Processor technology currently tends to increase the number of cores more than increasing the clock speed. This development is very useful and becomes an opportunity to improve the performance of sequential algorithms that are only done by one core. This paper discusses the sorting algorithm that is executed in parallel by several logical CPUs or cores using the openMP library. This algorithm is named QDM Sort which is a combination of sequential quick sort algorithm and double merge algorithm. This study uses a data parallelism approach to design parallel algorithms from sequential algorithms. The data used in this study are the data that have not been sorted and also the data that has been sorted is integer type which is stored in advance in a file. The parameter measured to determine the performance of the QDM Sort algorithm is speedup. In a condition where a large amount of data is above 4096 and the number of threads in QDM Sort is the same as the number of logical CPUs, the QDM Sort algorithm has a better speedup compared to the other parallel sorting algorithms discussed in this study. For small amounts of data it is still better to use sequential sorting algorithm.


2012 ◽  
Vol 433-440 ◽  
pp. 3900-3904
Author(s):  
Lai Lai Win Kyi ◽  
Nay Min Tun

Sorting appears the most attention among all computational tasks over the past years because sorted data is at the heart of many computations. Sorting is of additional importance to parallel computing because of its close relation to the task of routing data among processes, which is an essential part of many parallel algorithms. Many parallel sorting algorithms have been investigated for a variety of parallel computer architectures. In this paper, three parallel sorting algorithms have been implemented and compared in terms of their overall execution time. The algorithms implemented are the odd-even transposition sort, parallel merge sort and parallel shell sort. Cluster of Workstations or Windows Compute Cluster has been used to compare the algorithms implemented. The C# programming language is used to develop the sorting algorithms. The MPI library has been selected to establish the communication and synchronization between processors. The time complexity for each parallel sorting algorithm will also be mentioned and analyzed.


IEEE Micro ◽  
1995 ◽  
Vol 15 (3) ◽  
pp. 60-71 ◽  
Author(s):  
A. Louri ◽  
J.A. Hatch ◽  
Jongwhoa Na

1984 ◽  
Vol 24 (2) ◽  
pp. 187-195 ◽  
Author(s):  
S. S. Tseng ◽  
R. C. T. Lee

2013 ◽  
Vol 760-762 ◽  
pp. 567-571
Author(s):  
Hong Chao Wu ◽  
Wei Hua Xiao ◽  
Jian Feng Pu

The real-time radar signal sorting is one of the key technologies for electronic reconnaissance, first analyzes the defects of traditional main sorting algorithms, and then proposes a comprehensive main sorting algorithm. The method first uses the SDIF algorithm to sort PRI fixed and PRI stagger radar signal, then uses dynamic expansion association method to search PRI jitter radar signal. When using the SDIF algorithm, in order to improve the efficiency of extraction of PRI, first taking amplitude pretreatment, then only accumulate the signals whose amplitude meet certain requirements. After extracting PRI, extract to the original full pulse sequence. Simulation results show that the method of sorting has high accuracy and good real-time.


Sign in / Sign up

Export Citation Format

Share Document