Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Parallel Implementation Method of Large Integer Multiplication Karatsuba Algorithm

A technology of large integer multiplication and implementation method, which is applied in the direction of calculation, calculation, and electrical digital data processing using number system representation, which can solve the problems of data expression limitation and achieve the effect of improving algorithm efficiency

Active Publication Date: 2018-06-22
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] Although the parallelized Karatusba algorithm strategy proposed by Tudor Jebelean has achieved good results, its implementation time base is 2 29 , the data expression ability is limited, and the performance is optimal when the number of cores of the machine platform is 3 or 9

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Parallel Implementation Method of Large Integer Multiplication Karatsuba Algorithm
  • A Parallel Implementation Method of Large Integer Multiplication Karatsuba Algorithm
  • A Parallel Implementation Method of Large Integer Multiplication Karatsuba Algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be described in detail below in conjunction with the accompanying drawings and specific implementation steps.

[0032] The present invention discloses a kind of base is 2 64 The parallel implementation method of the large integer multiplication Karatsuba algorithm is based on 64-bit unsigned long integer integer operations, through clever formula conversion techniques, pointer operations and storage methods, to solve the correlation problem between partial product storage and calculation, through OpenMP multi Thread programming, using the section task sharing strategy to parallelize the algorithm, so as to open 8 threads to calculate 8 partial products in parallel in the first layer of the recursive program, each section is responsible for the calculation task of a partial product, and all partial products are calculated After the extraction is completed, serial merge is performed to parallelize the Karatsuba algorithm and improve the efficien...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a parallel implementation method of a big data Karatsuba algorithm. According to the method, the correlation problems of storage and calculation of partial products are solved through ingenious formula transformation technique, pointer operation and storage manner on the basis of 64-bit unsigned long integer operation, the algorithm is parallelized by adopting a section task sharing policy through OpenMP multi-thread programming, so that the first-layer parallelization of 8 threads in a recursive program is started to solve 8 partial products, each section is responsible for the calculation task of one partial product, and after all the partial products are solved, serial merging is carried out, so that the Karatsuba algorithm is parallelized and the efficiency of the algorithm is improved.

Description

technical field [0001] The invention relates to a parallel implementation method of a large integer multiplication Karatsuba algorithm, which improves the multi-core utilization rate of a computer by enabling multiple threads to perform parallel calculations, thereby improving algorithm efficiency. Background technique [0002] The Karatsuba algorithm is an important underlying large integer fast multiplication algorithm called when the number of large integers is small. This algorithm is widely used. It replaces part of the multiplication with addition and subtraction through the divide and conquer idea and ingenious computing skills, which reduces the complexity of the calculation time of the algorithm. However, the operation itself still has a large space and time overhead during operation, especially when the data reaches a certain scale, the consumption of memory space and computing time will be huge. Therefore, it is necessary to improve the performance of Karatsuba al...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F7/53
CPCG06F7/5324
Inventor 蒋丽娟杜胜杨超许永超刘芳芳钟伟赵玉文申超
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products