PARALLIZATION OF THE COMPUTATION OF CANONICAL SPLIT A NUMBER ON THE FACTORS
DOI:
https://doi.org/10.31649/1999-9941-2019-44-1-46-51Keywords:
canonical factorization, prime factors, residual, weighting factor, threads, parallel cоmputationAbstract
The cоmputation of the canonical factorization of a number using the modified trial divisions method has been considered. The performing operations of the division a number of factorization into prime numbers for the testing on a repetition factor demands a respective loss of the execute time in modern computer systems. To reduce them, the presentation of the number of factorization in the binary form is used for the process of analysis on repetition factors. The residuals of weighting coefficient are defined for each digit of the binary representation the number of factorization, which is equal to one. The obtained values of the residuals are accumulated and then the accumulated value is checked for the equality with the corresponding value from the set of prime numbers. In case of equality, we obtain an element of canonical factorization and again check the degrees of this element for a repetition factor. Otherwise, we proceed to the next larger prime number for further checking for a repetition factor. The independence of the subtasks to perform the check of the binary representation of a number on divisibility by prime numbers makes it possible to parallelize the execution of the factorization of a number in multi-core microprocessors of computer systems. Among the levels of the parallelism can be consistently identified: the definition of residual weighting coefficients, the accumulation of residuals for bits equel to one of the binary representation of the number of factorization, the checking for a repetition factor from the sets of primes. Software implementation in C++, according to the algorithm, schedules the computations in multithreads, using a pool of threads. In the algorithm for parallelizing the computations of the canonical factorization, depending on the entered value of the expansion number, the corresponding value of the number of primes with their powers is determined and is evenly distributed between the streams to perform an analysis of divisibility. As a result, the dependence of the run time the computation of the factorization of a number from the number of threads is defined in multi-core processors of Intel Core i3/i5/i7. For the each computer system exist the optimal number of the threads, which supports the minimal time of the canonical factorization of a number on the prime numbers.
References
Y. M. Vynohradov, Osnovy teoryy chysel, yzd. 9-e, pererab. – M.: Nauka, 1981. – 167 s.
V. A. Orlov, N. V. Medvedev, N. A. Shymko, A. B. Domracheva, Teoryia chysel v kryptohrafyy : ucheb. posobye. – M. : Yzd-vo MHTU ym. N. Eh. Baumana, 2011. – 223 s.
The Alternative History of Public-Key Cryptography [Elektronnyi resurs] – Rezhym dostupu: http://cryptome.org/ukpk-alt.htm
Sh. T. Yshmukhametov, Metody faktoryzatsyy naturalnykh chysel: uchebnoe posobye. – Kazan: Ka-zan. un. 2011. – 190 s.
Parallelnaia realyzatsyia y sravnytelnyi analyz alhorytmov faktoryzatsyy s raspredelennoi pamiatiu / Makarenko A.V. Pykhteev A.V. Efymov S.S. [Elektronnyi resurs] – Rezhym dostupu: http://cyberleninka.ru/article/n/parallelnaya-realizatsiya-i-sravnitelnyy-analiz-algoritmov-faktorizatsii-v-sistemah-s-raspredelyonnoy-pamyatyu
Patent 116912 Ukraina, G06F7/04(2006.01), G06F17/10(2006.01). Prystrii kanonichnoho rozkladu chys-la na mnozhnyky / I.O. Protsko, V.M. Tesliuk; Opubl. 25.05.2018, Biul. №10.
Biblioteka CTPL [Elektronnyi resurs ] – Rezhym dostupu: https://github.com/vit-vit/CTPL.
Downloads
-
PDF (Українська)
Downloads: 291