← LibraryCantor-Zassenhaus Equal Degree SplittingEngineering · MathematicsLesson 268/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginCantor-Zassenhausequal degree splittingprobabilistic algorithmLas Vegas

Polynomial Factorisation

Cantor-Zassenhaus Equal Degree Splitting

Splitting a product of irreducibles of equal degree by random elements, the probability analysis, and the characteristic two variant.

Engineering / MathematicsPolynomial Factorisation2 min readKV-MATH-0565

The final stage of finite field factorisation separates irreducible factors that share a degree. No deterministic polynomial-time method is known; the standard algorithm is Las Vegas — always correct, with random running time.

The setting

The input is squarefree and known to be a product of irreducible factors all of the same degree d. By the Chinese remainder theorem the quotient ring is a product of copies of the field of size q^d, one per factor.

The odd characteristic method

Half the non-zero elements of a finite field are squares. Raising a random element to the power that tests squareness gives plus or minus one in each component, and the GCD separates them.

gcd( f(X), a(X)^((q^d - 1)/2) - 1 ) for random aSplits f according to which components give plus one.

Cantor-Zassenhaus equal degree splitting

  1. Choose randomlyPick a random polynomial of degree below that of the input.
  2. ExponentiateRaise to the half-order power modulo the input.
  3. Subtract oneForm the difference from the identity.
  4. Take the GCDA non-trivial GCD splits the input.
  5. RecurseApply to both parts until all factors are separated.

Probability of success

Each component independently lands in one of two classes with probability close to one half, so a random choice fails to split only when all components agree.

Probability of a non-trivial split >= 1 - 2^(1-r)r is the number of factors; at least one half for two factors.

Characteristic two

Tr(a) = a + a^2 + a^4 + ... + a^(2^(dm-1))The trace to the field of two elements; splits by its value.

Cost

Cost of equal degree splitting
ComponentCost
One trialOne modular exponentiation plus one GCD
Expected trials per splitAbout two
Total for r factorsProportional to r splits

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

Distinct Degree FactorisationArticle · MathematicsNEXT LESSON →The Berlekamp Factorisation AlgorithmArticle · MathematicsSquarefree Factorisation of PolynomialsArticle · MathematicsMignotte Bounds on Polynomial FactorsArticle · Mathematics