Abstract

Currently the tasks of computations speed-up and/or their optimization are actual ones. Among the ways to solve these tasks is a method of parallelization and asynchroniza-tion of a sorting algorithm, which is considered in the article. We offer a sorting method that is based on the principle of dividing an array into a set of independent pairs of numbers and their parallel and asynchronous comparison, which distinguishes the offered method from the traditional sorting algorithms (like quick sorting, merge sorting, insertion sorting and others). The algorithm is realized with the use of Petri nets as the most suitable tool for describing asynchronous systems. Examples of its work are given. The performance of the algorithm is evaluated for the best and the worst cases. In the best case the algorithm is executed for 2 or 3 conditional tacks depending on an array partition into the pairs of adjacent elements. In the worst case –for n or 3n/2, where n is the number of elements. Parallelization and asynchronization principles, used during the algorithm construction, can also be used for different algorithms.

Highlights

  • В наилучшем случае, когда массив уже отсортирован, рассматриваемый алгоритм выполняется за 2 или 3 условных такта в зависимости от разбиения массива на пары соседних элементов

  • We offer a sorting method that is based on the principle of dividing an array into a set of independent pairs of numbers and their parallel and asynchronous comparison, which distinguishes the offered method from the traditional sorting algorithms

  • Voevoda A.A., Romannikov D.O. Asynchronous Sorting Algorithm for Array of Numbers

Read more

Summary

Introduction

Алгоритм заканчивает свою работу в случае запрета на сравнение для всех пар соседних чисел массива. Нарисованные на рисунке прямоугольниками, выполняют сравнение i-тых разрядов соседних чисел. Работа приведенной системы начинается со срабатывания самого верхнего перехода, при котором метка из места start переходит в каждое из мест с1-с4, которые показывают доступность для сравнения соответствующих элементов массива.

Results
Conclusion
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.