PARALLIZATION OF THE COMPUTATION OF CANONICAL SPLIT A NUMBER ON THE FACTORS

I. Prots'ko, O. V. Gryschuk, LtdС “Lohika”
{"title":"PARALLIZATION OF THE COMPUTATION OF CANONICAL SPLIT A NUMBER ON THE FACTORS","authors":"I. Prots'ko, O. V. Gryschuk, LtdС “Lohika”","doi":"10.31649/1999-9941-2019-44-1-46-51","DOIUrl":null,"url":null,"abstract":"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.","PeriodicalId":121207,"journal":{"name":"Information Technology and Computer Engineering","volume":"42 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-05-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information Technology and Computer Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.31649/1999-9941-2019-44-1-46-51","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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.
正则分裂数在因子上的并行化计算
本文讨论了用改进的试除法计算一个数的正则分解的问题。在现代计算机系统中,为测试重复因子而进行的除法、因数分解为质数的运算需要相应的执行时间损失。为了减少重复因子,在分析重复因子的过程中,采用了二进制形式的分解次数表示。加权系数的残差定义为二元表示的每一位数的因数分解数,等于1。将得到的残差值进行累加,然后检查累加值是否与质数集合中的相应值相等。在相等的情况下,我们得到一个正则分解的元素,并再次检查这个元素的重复因子的程度。否则,我们继续到下一个更大的素数,以进一步检查重复因子。在计算机系统的多核微处理器中,检查一个数的二进制表示是否可被质数整除的子任务是独立的,这使得并行执行一个数的因数分解成为可能。在并行性的层次中可以一致地识别:残差加权系数的定义,残差的累积等于二进制表示的因数分解数之一,从质数集合中检查重复因子。在c++的软件实现中,根据算法调度多线程计算,使用线程池。在规范分解计算的并行化算法中,根据展开数的输入值,确定质数及其幂的对应值,并在流之间均匀分布,以进行可除性分析。因此,在Intel酷睿i3/i5/i7多核处理器中定义了数分解计算的运行时间与线程数的依赖关系。对于每个计算机系统都存在最优的线程数,它支持质数上一个数的正则分解所需的时间最小。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信