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

Ultra-long digit addition processing method and computer readable storage medium

A processing method, a technology of the number of bits, applied in the field of information coding and computing, which can solve problems such as low efficiency

Inactive Publication Date: 2020-10-27
SHENZHEN Y& D ELECTRONICS CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, commonly used large number algorithms include: simulated hand calculation algorithm, fast Fourier transform algorithm and Chinese remainder theorem, etc. These algorithms generally have the problem of low efficiency

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
  • Ultra-long digit addition processing method and computer readable storage medium
  • Ultra-long digit addition processing method and computer readable storage medium
  • Ultra-long digit addition processing method and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0102] Determine the two super long digits A and B that need to be encoded:

[0103] A=120623479892889324486908; B=27801936763830785484783867.

[0104] As mentioned earlier, the specific encoding process is as follows:

[0105] Each character in the variable of A, B string type, for 2 16 Perform rounding and remainder operations to obtain the quotient and remainder, multiply the remainder by 10 and accumulate it as the part to start the operation of the next character, and obtain the remainder as the base of the corresponding layer in the last small cycle, and repeat this process until the string becomes an empty string and the loop ends. A large cycle (all characters in the string cycle once), the remainder result is the base corresponding to the super-long digit level.

[0106] Operate on string A=120623479892889324486908:

[0107] The first big loop, traversing the string: 120623479892889324486908:

[0108] The first small cycle: 1→1 / 2 16 = 0, reminder → 1% 2 16 = 1,...

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 relates to an ultra-long digit addition processing method, which comprises the following steps: S1, encoding an ultra-long digit based on an encoding mode and a computational system cardinal number to generate a hierarchical ultra-long digit code; and S2, performing additive operation according to the symbol of the ultra-long digit participating in the ultra-long digit addition and the ultra-long digit code generated by the ultra-long digit. The invention also relates to a computer readable storage medium. In the ultra-long digit addition processing method and a computer readablestorage medium, coding symbol extraction is carried out on an ultra-long digit N; a coding level and a level cardinal number corresponding to each level are calculated; therefore, the invention provides a coding method of ultra-long digits exceeding the digits capable of being processed by a current computer, further provides an addition calculation method based on ultra-long digit coding, and can realize ultra-fast addition operation of ultra-large numerical values, thereby adapting to large computing power calculation task requirements of big data analysis, processing, calculation and the like.

Description

technical field [0001] The present invention relates to the field of information coding and calculation, and more specifically, relates to a processing method and a computer-readable storage medium for super-long digit addition. Background technique [0002] Large number operations, as the name suggests, are a series of operations performed on numbers with very large values. We know that in mathematics, there is no upper limit to the size of a value, but in a computer, due to the limitation of the word length, the range that the computer can represent is limited. When we operate on smaller numbers, such a value It does not exceed the expressive range of the computer, so it can be calculated. However, when we process a large amount of data in practical applications, due to the limited range of values ​​represented by the basic numerical data types provided by the programming language, it cannot satisfy large-scale high-precision numerical calculations, so other methods need ...

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 Applications(China)
IPC IPC(8): G06F7/50
CPCG06F7/50
Inventor 戚建淮郑伟范彭华汪乔宋晶刘建辉
Owner SHENZHEN Y& D ELECTRONICS CO LTD
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