Skip to main content
QUICK REVIEW

[Paper Review] Continued fractions and Parallel SQUFOF

Stephen S. McMath, F. Crabbe|ArXiv.org|Jan 11, 2006
Numerical Methods and AlgorithmsComputer Science14 references4 citations
TL;DR

This paper presents a theoretical foundation for the SQUFOF integer factorization algorithm using two-sided continued fractions and quadratic forms, proving key properties like periodicity and symmetry that reveal factorizations. It introduces a segment-based parallelization method that maintains efficiency per processor as the number of processors scales, outperforming multiplier-based approaches at high parallelism levels.

ABSTRACT

In this partly expository paper, we discuss three results. (1) That the two-sided continued fraction of the normalized square root (an important part of the SQUFOF algorithm) has several very attractive properties - periodicity, a symmetry point corresponding to a factorization of $N$, and so on. (2) The infrastructure distance formula. (3) A method for parallelization of SQUFOF that maintains its efficiency per procesor as the number of processors increases, and thus is predicted to be useful for very large numbers of processors. The first two are known (in one form or another), the third may be new (at least the implementation in C using MPI is new).

Motivation & Objective

  • To present Daniel Shanks' original SQUFOF algorithm in full, as it was not previously published in complete form.
  • To prove that the two-sided continued fraction expansion of the normalized square root exhibits periodicity and symmetry, with the symmetry point corresponding to a factorization of N.
  • To establish the infrastructure distance formula, a key theoretical component of SQUFOF, providing a rigorous proof not previously available in the literature.
  • To develop and evaluate a novel parallelization strategy for SQUFOF that maintains per-processor efficiency as the number of processors increases.
  • To compare the scalability and performance of segment-based parallelization against multiplier-based methods in large-scale parallel environments.

Proposed method

  • Uses two-sided continued fractions of the normalized square root of N to generate a cycle of integral binary quadratic forms of discriminant N.
  • Applies the theory of reduced and properly equivalent forms in real quadratic fields to analyze the structure of the continued fraction cycle.
  • Employs the infrastructure distance formula to detect when a form corresponds to a factorization of N, based on the distance from the identity element in the class group.
  • Implements a segment-based parallelization strategy where the continued fraction cycle is divided into non-overlapping segments, each processed independently by a separate processor.
  • Uses MPI in C to implement and benchmark the segment-based method on a 64-processor SGI Origin 2800 system.
  • Compares performance against the multiplier-based method, where N is multiplied by small square-free integers to create multiple factorization instances.

Experimental results

Research questions

  • RQ1What are the theoretical properties—such as periodicity and symmetry—of the two-sided continued fraction expansion of the normalized square root in the context of SQUFOF?
  • RQ2How can the infrastructure distance formula be rigorously derived and applied to detect factorizations within the cycle of quadratic forms?
  • RQ3Can a segment-based parallelization strategy for SQUFOF maintain high per-processor efficiency as the number of processors increases?
  • RQ4How does the performance of segment-based parallelization compare to multiplier-based parallelization in terms of scalability and runtime reduction?
  • RQ5At what point does segment-based parallelization overtake multiplier-based methods in efficiency as the number of processors grows?

Key findings

  • The two-sided continued fraction of the normalized square root of N is proven to be periodic, with a symmetry point that directly reveals a nontrivial factor of N.
  • The infrastructure distance formula is rigorously proven, providing a theoretical basis for detecting factorizations during the SQUFOF cycle.
  • Segment-based parallelization maintains high per-processor efficiency even as the number of processors increases, avoiding the bottleneck of load imbalance.
  • Empirical results show that segment-based parallelization cuts runtime in half from 20 to 50 processors, while the multiplier-based method shows diminishing returns at scale.
  • Linear and quadratic regression models predict a crossover point where segment-based parallelization becomes faster than multiplier-based methods at approximately 47 to 80 processors.
  • The segment-based method is predicted to be more efficient than the multiplier method for large-scale parallel factorization of large integers.

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.