← LibraryChoosing an Algorithm: Decision GuideEngineering · MathematicsLesson 382/385← PrevNext →
ArticlePublished 7 Aug 20261 min readBy Kevin Jogindecision guidealgorithm selectionsummarypractical guidance

Software, Tables and Sources

Choosing an Algorithm: Decision Guide

A consolidated decision guide across the main computational tasks in this collection.

Engineering / MathematicsSoftware, Tables and Sources2 min readKV-MATH-0679

This page consolidates the selection guidance distributed across the collection. Each branch links to the page treating that choice in full.

Integer arithmetic

Integer arithmetic selection
TaskChoice
MultiplicationSchoolbook at small sizes; Karatsuba above the measured crossover
Repeated modular arithmetic with a fixed modulusMontgomery reduction
GCDBinary GCD at small sizes; Lehmer above
Many inversions at onceSimultaneous inversion

Linear algebra and lattices

Linear algebra selection
TaskChoice
Integer matrix normal formHermite with a modular bound; LLL-based when growth is severe
Group structure from relationsSmith normal form
Short lattice vectorsLLL; enumeration when exactness is required
Large sparse system over a small fieldStructured elimination then an iterative method — see the linear algebra stage

Polynomials

Number fields

Number field task selection
TaskChoice
Maximal orderRound 2, after polynomial reduction
Prime decomposition, p not dividing the indexSimple decomposition
Prime decomposition, index divisorBuchmann-Lenstra or Newton polygons
Class group, quadratic, small discriminantForm enumeration
Class group, general or largeBuchmann
Galois groupResolvents, after discriminant and cycle type tests

Primality and factoring

These are treated in full on their own pages: the primality landscape and the factoring comparison.

The general principles

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — collection orientation material. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Published Tables of Fields and CurvesArticle · MathematicsNEXT LESSON →Modern Factoring Methods ComparedArticle · MathematicsNumber Theory Software PackagesArticle · MathematicsImplementation Pitfalls and Testing StrategyArticle · Mathematics