← LibraryPolynomial Representation and StorageEngineering · MathematicsLesson 257/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Joginpolynomial representationdensesparsecoefficient domain

Polynomial Arithmetic and GCD

Polynomial Representation and Storage

Dense and sparse polynomial representations, coefficient domains, and the normalisation invariants every implementation must maintain.

Engineering / MathematicsPolynomial Arithmetic and GCD2 min readKV-MATH-0554

Polynomials are the second substrate of this subject, after integers. A number field is a quotient of a polynomial ring, prime decomposition is polynomial factorisation modulo a prime, and resultants drive discriminant computation.

Dense and sparse

Polynomial representations
RepresentationStorageSuits
Dense array of coefficientsProportional to the degreeAlmost everything in this collection
Sparse list of exponent-coefficient pairsProportional to the number of termsVery high degree with few terms

Coefficient domains

Over a finite field
Coefficients do not grow. Costs are honest operation counts. This is the friendly case.
Over the integers
Coefficients grow during GCD and elimination, exactly as matrix entries do. The dominant practical concern.
Over the rationals
Almost always cleared to integers first by multiplying through by the common denominator.
Over a number field
Coefficients are themselves algebraic numbers with their own representation. Costs compound.

Normalisation invariants

Cost baseline

Baseline polynomial costs
OperationCost in coefficient operations
Addition, subtractionO(max degree)
MultiplicationO(d_1 d_2) schoolbook
Division with remainderO(d_1 - d_2 + 1) times d_2
Evaluation at a pointO(d) by Horner
GCD over a fieldO(d^2)

The structural parallel with integers runs deep and is worth keeping in view: representation, division, GCD, and even the fast multiplication methods all mirror the integer case. See multiprecision representation.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 3.1.1. 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

Finding Short Vectors in LatticesArticle · MathematicsNEXT LESSON →Polynomial Multiplication StrategiesArticle · MathematicsDetecting Algebraic and Linear Dependence with LLLArticle · MathematicsPolynomial Division with RemainderArticle · Mathematics