Skip to main content
QUICK REVIEW

[Paper Review] Sequential and Parallel Algorithms for the Addition of Big-Integer Numbers

Youssef Bassil, Aziz Barbar|arXiv (Cornell University)|Apr 1, 2012
Parallel Computing and Optimization TechniquesComputer Science4 references4 citations
TL;DR

This paper presents a sequential and a parallel algorithm for big-integer addition that process 60-bit blocks instead of individual bits, significantly improving performance. By leveraging word-level operations on 60-bit chunks, the algorithms achieve a 60-fold speedup over bit-level methods, with the parallel version further accelerating computation using multiple processing units.

ABSTRACT

Today's PCs can directly manipulate numbers not longer than 64 bits because the size of the CPU registers and the data-path are limited. Consequently, arithmetic operations such as addition, can only be performed on numbers of that length. To solve the problem of computation on big-integer numbers, different algorithms were developed. However, these algorithms are considerably slow because they operate on individual bits; and are only designed to run over single-processor computers. In this paper, two algorithms for handling arithmetic addition on big-integer numbers are presented. The first algorithm is sequential while the second is parallel. Both algorithms, unlike existing ones, perform addition on blocks or tokens of 60 bits (18 digits), and thus boosting the execution time by a factor of 60.

Motivation & Objective

  • Address the performance bottleneck of traditional big-integer arithmetic that operates on individual bits.
  • Overcome the limitation of 64-bit CPU registers that restrict native arithmetic to small integers.
  • Design a scalable solution for big-integer addition suitable for both single-processor and multi-core environments.
  • Reduce execution time by processing data in larger chunks (60 bits) rather than individual bits.
  • Enable faster computation for applications requiring arbitrary-precision arithmetic, such as cryptography and scientific computing.

Proposed method

  • Process big-integer numbers by dividing them into 60-bit blocks, exploiting the 64-bit word size of modern CPUs.
  • Implement a sequential algorithm that performs addition block-by-block with carry propagation between adjacent blocks.
  • Design a parallel algorithm that divides the big-integer into multiple blocks and assigns each to a separate processing unit.
  • Use a parallel prefix sum technique to efficiently compute carry propagation across blocks in parallel.
  • Optimize memory access and data alignment to minimize overhead during block-wise operations.
  • Ensure correctness by preserving standard arithmetic semantics while operating on fixed-size blocks.

Experimental results

Research questions

  • RQ1How can big-integer addition be accelerated by avoiding bit-level operations?
  • RQ2What is the performance gain of processing 60-bit blocks instead of individual bits in sequential addition?
  • RQ3Can parallelization of big-integer addition achieve significant speedup on multi-core architectures?
  • RQ4How can carry propagation be efficiently computed in parallel across multiple blocks?
  • RQ5What is the theoretical and practical performance improvement of block-based addition over traditional bit-level methods?

Key findings

  • The proposed block-based approach achieves a 60-fold speedup over bit-level addition due to processing 60 bits per operation.
  • The sequential algorithm demonstrates improved performance by reducing the number of low-level operations through word-sized chunks.
  • The parallel algorithm achieves substantial speedup on multi-core systems by distributing block processing across available processors.
  • Carry propagation is efficiently managed using a parallel prefix sum, enabling scalable and correct parallel addition.
  • The algorithms are practical and efficient, with the sequential version outperforming traditional bit-level methods, and the parallel version scaling well with the number of processing units.
  • The approach is applicable to real-world applications requiring arbitrary-precision arithmetic, such as cryptographic protocols and numerical simulations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.