TRANSFORMATION OF SORTING NETWORKS FOR DIFFERENT DEGREES OF PARALLELISM

  • I.I. Levin Southern Federal University
  • К.N. Alekseev Southern Federal University
Keywords: Sorting algorithms, sorting networks, information graph, tiered-parallel form, algorithm transformation

Abstract

Some well-known sorting algorithms may be more efficient than others according to any of the
main criteria: the number of performed operations, the execution time of elementary operations, the
used memory capacity, the parallelism degree, the functional regularity of connections in the information
graph of algorithm, etc. At the same time, it is possible to choose such sorting algorithm, which
will take up a minimum hardware resource after performance reducing operation of computational
structure. The choice of a particular algorithm directly depends on it parallelization degree, the specified
by the data processing time, the coefficient of reduction and latency of the computational structure
and the number and bit depth of the sorted elements. Sorting algorithms are information-equivalent,
since they perform the same mathematical function. However, each of algorithms is considered as an
autonomous and independent approach to solving the data ordering problem. It is known that the same
sorting network correspond to the "bubble", "inserts" and "selection" sorting algorithms. However, the
transition from one algorithm to another has not yet been described in the form of mathematical transformations.
It can be argued that the mathematical tools for describing various sorting algorithms and
sorting networks is not fully formalized for today. Because of this, there is no methodological basis for
the transition from one algorithm to another. Another method to describe the algorithm for solving the
problem is its representation in the form of an information graph. In it, the performed operations are
vertices that are combined by arcs reflecting the information dependence between operations. Transformation
of the information graph can lead to obtaining other information and equivalent algorithms.
The advantage of similar approach for the algorithm description of is the comparative simplicity of the
used conceptual tools. In this paper, the transformation rules of sorting networks are considered, on the
basis of which the transition from one network to another is performed. Each of the resulting sorting
networks can be effective at different parallelization coefficients and data processing rates, on which the
performance reduction coefficient of the implemented computational structure directly depends. Automation
of the proposed transformation methods can allow the use the different sorting algorithms, derived
from a single problem description in the form of an information graph, and depending on the specified
data processing rate.

References

1. Knut D.E. Iskusstvo programmirovaniya. T. 3. Sortirovka i poisk [The art of programming.
Volume 3. Sorting and searching]. 2nd ed.: transl. from engl. Moscow: Izdatel'skiy dom
«Vil'yams», 2001.
2. Dasgupta S., Papadimitriu Kh., Vazirani U. Algoritmy [Algorithms]: trans. from engl., ed. by
A. Shenya. Moscow: MTSNMO, 2014, 320 p.
3. Kormen Tomas Kh. i dr. Algoritmy: postroenie i analiz [Algorithms: construction and analysis].
3rd ed.: transl. from engl. Moscow: OOO «I.D. Vil'yams», 2013, 1328 p.
4. Skiena S.S. Algoritmy. Rukovodstvo po razrabotke [Algorithms. Development Guide]. 3rd ed.:
transl. from engl. Saint Petersburg: BKhV-Peterburg, 2022, 848 p.
5. Alekseev K.N. Metody i sredstva sozdaniya parallel'no-konveyernykh programm dlya
resheniya zadach real'nogo vremeni na rekonfiguriruemykh vychislitel'nykh sistemakh: diss.
… kand. tekhn. nauk, po spetsial'nosti 05.13.11 “Matematicheskoe i programmnoe
obespechenie vychislitel'nykh mashin, kompleksov i komp'yuternykh setey”, nauchnyy
rukovoditel': d.t.n., prof. Levin I.I. [Methods and means for creating parallel-pipeline programs
for solving real-time problems on reconfigurable computing systems: cand. of eng. sc. diss.,
specialty 05.13.11 “Mathematical and software support for computers, complexes and computer
networks”, scientific supervisor: dr. of eng. sc,, professor Levin I.I.]. Taganrog, 2020,
213 p.
6. Skvortsov S.V., Pyurova T.A. Parallel'nye algoritmy sortirovki dannykh i ikh realizatsiya na
platforme CUDA [Parallel data sorting algorithms and their implementation on the CUDA
platform], Vestnik RGRTU [Vestnik of Ryazan State Radio Engineering University], 2016,
No. 58, pp. 42-48.
7. Sortirovochnye seti s osobymi svoystvami [Sorting networks with special properties]. Available at:
https://neerc.ifmo.ru/wiki/index.php?title=%D0%A1%D0%BE%D1%80%D1%82%D0%B8%D1
%80%D0%BE%D0%B2%D0%BE%D1%87%D0%BD%D1%8B%D0%B5_%D1%81%D0%B5
%D1%82%D0%B8_%D1%81_%D0%BE%D1%81%D0%BE%D0%B1%D1%8B%D0%BC%D
0%B8_%D1%81%D0%B2%D0%BE%D0%B9%D1%81%D1%82%D0%B2%D0%B0%D0%B
C%D0%B8 (accessed 01 November 2023).
8. Sortiruyushchie seti dlya kvadratichnykh sortirovok [Sorting networks for quadratic sorts]. Available
at: https://neerc.ifmo.ru/wiki/index.php?title=%D0%A1%D0%BE%D1%80%D1%82%D0%
B8%D1%80%D1%83%D1%8E%D1%89%D0%B8%D0%B5_%D1%81%D0%B5%D1%82%D0
%B8_%D0%B4%D0%BB%D1%8F_%D0%BA%D0%B2%D0%B0%D0%B4%D1%80%D0%B
0%D1%82%D0%B8%D1%87%D0%BD%D1%8B%D1%85_%D1%81%D0%BE%D1%80%D1
%82%D0%B8%D1%80%D0%BE%D0%B2%D0%BE%D0%BA (accessed 01 November 2023).
9. Alekseev K.N., Levin I.I., Sorokin D.A. Strukturno-protsedurnaya realizatsiya na rekonfiguriruemykh
vychislitel'nykh sistemakh kodirovaniya KHaffmana v real'nom masshtabe
vremeni [Structural and procedural implementation on reconfigurable computing systems of
Huffman coding in real time], Vestnik komp'yuternykh i informatsionnykh tekhnologiy [Bulletin
of computer and information technologies], 2018, No. 9, pp. 3-10. ISSN 1810-7206. DOI:
10.14489/vkit.2018.09.pp.003-010. Available at: http://www.vkit.ru/index.php//current-issuerus/
751-003-010.
10. Alekseev K.N., Sorokin D.A., Semernikova E.E. Strukturno-protsedurnaya realizatsiya
kodirovaniya algoritmom Khaffmana v zadachakh upravleniya [Structural and procedural implementation
of coding by the Huffman algorithm in control problems], Mater. 10-y
Vserossiyskoy mul'tikonferentsii po problemam upravleniya (MKPU-2017), 11-16 sentyabrya
2017 g. [Proceedings of the 10th All-Russian Multi-Conference on Control Problems (MCPU-
2017), September 11-16, 2017]. Rostov-on-Don: Izd-vo YuFU, 2017, Vol. 3, pp. 126-127.
11. Dudnikov E.A., Alekseev K.N., Sorokin D.A. High-Speed Huffman encoding of dense data
flows on FPGA, German International Journal of Modern Science / Deutsche internationale
Zeitschrift für zeitgenössische Wissenschaft, 2021, No. 9, Vol. 1, pp. 36-40. Available at:
https://dizzw.com/wp-content/uploads/2021/05/Deutsche-internationale-Zeitschrift-fürzeitgenössische-
Wissenschaft-№9-part-1-2021-37-41.pdf.
12. Kalyaev A.V., Levin I.I. Modul'no-narashchivaemye mnogoprotsessornye sistemy so strukturnoprotsedurnoy
organizatsiey vychisleniy [Modularly scalable multiprocessor systems with structural
and procedural organization of calculations]. Moscow: Yanus-K, 2003, 380 p.
13. Kalyaev I.A., Levin I.I., Semernikov E.A., Shmoylov V.I. Rekonfiguriruemye mul'tikonveyernye
vychislitel'nye struktury [Reconfigurable multi-pipeline computing structures]. 2nd ed., under
general ed. I.A. Kalyaeva. Rostov-on-Don: Izd-vo YuNTS RAN, 2009, 344 s. ISBN 978-5-
902982-61-6.
14. Pisarenko I.V., Alekseev K.N., Mel'nikov A.K. Resursonezavisimoe predstavlenie
sortiruyushchikh setey na yazyke programmirovaniya Set@l [Resource-independent representation
of sorting networks in the Set@l programming language], Vestnik komp'yuternykh i
informatsionnykh tekhnologiy [Bulletin of computer and information technologies], 2019,
No. 11 (185), pp. 53-60. DOI: 10.14489/vkit.2019.11.pp.053-060. Available at:
http://vkit.ru/index. php/ current-issue-rus/857-053-060.
15. Pisarenko I.V., Kasarkin A.V., Alekseev K.N. Rekursivnoe opisanie grafov s assotsiativnymi
operatsiyami na yazyke programmirovaniya Set@l [Recursive description of graphs with associative
operations in the Set@l programming language], Vserossiyskaya nauchnaya
konferentsiya "Cuperkomp'yuternye tekhnologii (SKT) 2020", 05-10 oktyabrya 2020 g.: Krym,
Alushta, Rossiya [All-Russian scientific conference "Supercomputer Technologies (SCT)
2020", October 05-10, 2020: Crimea, Alushta, Russia]. Rostov-on-Don; Taganrog: Izd-vo
YuFU, 2020, pp. 79-83.
16. Mikhaylov D.V. Metody sozdaniya parallel'no-konveyernykh programm dlya zadach s
posledovatel'nym informatsionnym grafom: diss. … kand. tekhn. nauk, po spetsial'nosti
05.13.11 “Matematicheskoe i programmnoe obespechenie vychislitel'nykh mashin,
kompleksov i komp'yuternykh setey”, nauchnyy rukovoditel': d.t.n., prof. Levin I.I. [Methods
for creating parallel-pipeline programs for problems with a sequential information graph: cand.
of eng. sc. diss., specialty 05.13.11 “Mathematical and software support for computers, complexes
and computer networks”, scientific supervisor: dr. of eng. sc., professor Levin I.I.]. Taganrog,
2022, 213 p.
17. Mikhaylov D.V., Levin I.I., Dordopulo A.I., Pisarenko I.V. Predstavlenie grafov s
assotsiativnymi operatsiyami na yazyke programmirovaniya SET@L [Representation of
graphs with associative operations in the SET@L programming language], Izvestiya YuFU.
Tekhnicheskie nauki [Izvestiya SFedU. Engineering Sciences], 2020, No. 3 (213), pp. 98-109.
DOI: 10.18522/2311-3103-2020-3-98-111.
18. Mikhaylov D.V. Preobrazovanie nekotorykh vidov posledovatel'nykh informatsionnykh grafov v
parallel'no-konveyernuyu formu [Transformation of some types of sequential information graphs
into a parallel-pipeline form], Izvestiya YuFU. Tekhnicheskie nauki [Izvestiya SFedU. Engineering
Sciences], 2020, No. 7 (217), pp. 78-93. DOI: 10.18522/2311-3103-2020-7-78-93.
19. Mikhaylov D.V. Preobrazovanie posledovatel'nogo informatsionnogo grafa metoda progonki v
parallel'nuyu formu [Transformation of a sequential information graph of the sweep method
into parallel form], Izvestiya YuFU. Tekhnicheskie nauki [Izvestiya SFedU. Engineering Sciences],
2021, No. 7 (224), pp. 177-188. DOI: 10.18522/2311-3103-2021-7-177-188.
20. Sorokin D.A., Dordopulo A.I. Metodika sokrashcheniya apparatnykh zatrat v slozhnykh
sistemakh pri reshenii zadach s sushchestvenno-peremennoy intensivnost'yu potokov dannykh
[Methodology for reducing hardware costs in complex systems when solving problems with
significantly variable intensity of data flows], Izvestiya YuFU. Tekhnicheskie nauki [Izvestiya
SFedU. Engineering Sciences], 2012, No. 4, pp. 213-219.
21. Batcher K.E. Sorting Networks and their Applications, Proc. AFIPS Spring Joint Comput.
Conf., 1968, Vol. 32, pp. 307314.
Published
2023-12-11
Section
SECTION I. INFORMATION PROCESSING ALGORITHMS