Analisis Kinerja Algoritma Quick Double Merge Sort Paralel Menggunakan openMP

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.

2020 ◽  
Vol 12 (2) ◽  
pp. 96-103
Author(s):  
Desi Anggreani ◽  
Aji Prasetya Wibawa ◽  
Purnawansyah Purnawansyah ◽  
Herman Herman

The most used algorithm is the sorting algorithm. There have been many popping sorting algorithms that can be used, in this study researchers took three sorting algorithms namely Insertion Sort, Selection Sort, and Merge Sort. As for this study will analyze the comparison of execution time and memory usage by considering the number of enter data of each algorithm used. The data used in this study is ukhuwah NET network bandwidth usage data connected in the Faculty of Computer Science in the form of double data types. After implementing and analyzing in terms of execution time merge sort algorithm has a faster execution time in sorting data with an average execution time value of 108.593777 ms on the 3000 data count. While in the same amount of data for the most execution time is the Selection Sort algorithm with a large execution time of 144.498144 ms, in terms of memory usage with the amount of data3000 Merge Sort Algorithm has the highest memory usage compared to the other two algorithms which is 21,444 MB while the other two algorithms have a succession of memory usage of 20,837 MB and 20,325MB.


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.


Sorting is an essential conceptin the study of data structures. There are many sorting algorithms that can sort elements in a given array or list. Counting sort is a sorting algorithm that has the best time complexity. However, the counting sort algorithm only works for positive integers. In this paper, an extension of the counting sort algorithm is proposed that can sort real numbers and integers (both positive and negative).


Data sorting hasmany advantages and applications in software and web development. Search engines use sorting techniques to sorttheresult before itispresented totheuser.Thewordsinadictionary are insorted ordersothatthewords canbe found easily.There aremanysorting algorithms that areused in many domains to perform some operation and obtain the desired output. But there are some sorting algorithms that take large time in sorting the data. This huge time can be vulnerable to the operation. Every sorting algorithm has the different sorting technique to sort the given data, Stooge sort is asorting algorithm which sorts the data recursively. Stooge sort takes comparatively more time as compared tomany othersorting algorithms.Stooge sortworks recursively to sort the data element but the Optimized Stooge sort does not use recursive process. In this paper, we propose Optimized Stooge sort to reduce the time complexity of the Stooge sort. The running time of Optimized Stooge sort is very much reduced as compared to theStooge sort algorithm. The existing researchfocuses onreducing therunning time of Stooge sort. Our results show that the Optimized Stooge sort is faster than the Stooge sort algorithm.


Author(s):  
Marcellino Marcellino ◽  
Davin William Pratama ◽  
Steven Santoso Suntiarko ◽  
Kristien Margi

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


Author(s):  
A. Bosakova-Ardenska ◽  
N. Vasilev ◽  
L. Kostadinova-Georgieva

Author(s):  
Omar Khan Durrani ◽  
Shreelakshmi V ◽  
Sushma Shetty ◽  
Vinutha D C

Theories of Computer Sciences & Engineering nowadays are being only read than being designed and practiced. Hence in this paper and [8] we have featured the theories and practices relying beneath popular sorting algorithms and their performance measurement in our experiments for the realization of efficiency class. Further we have concentrated on finding the Asymptotic Behavior Range for the two classes of sorting algorithms (n2 & nlogn). We have found shell sort and quick sort outperforming in their respective efficiency class of sorting algorithm.


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

Sign in / Sign up

Export Citation Format

Share Document