Lably
Skip to content

Buchberger's algorithm

Algorithm for computing Gröbner bases

  • 3 min read
  • 3 chapters

Related on Lably

Through Polynomial, Greatest common divisor and System of linear equations

The Euclidean algorithm for computing the polynomial greatest common divisor is a special case of Buchberger's algorithm restricted to polynomials of a single variable. Gaussian elimination of a system of linear equations is another special case where the degree of all polynomials equals one.

For other Gröbner basis algorithms, see Gröbner basis § Algorithms and implementations.

Algorithm

A crude version of this algorithm to find a basis for an ideal I of a polynomial ring R proceeds as follows:

Input A set of polynomials F that generates I
Output A Gröbner basis G for I
  1. G := F
  2. For every fi, fj in G, denote by gi the leading term of fi with respect to the given monomial ordering, and by aij the least common multiple of gi and gj.
  3. Choose two polynomials in G and let Sij = ⁠aij/ gi⁠ fi − ⁠aij/ gj⁠ fj (The leading terms here will cancel by construction).
  4. Reduce Sij, with the multivariate division algorithm relative to the set G until the result is not further reducible. If the result is non-zero, add it to G.
  5. Repeat steps 2–4 until all possible pairs are considered, including those involving the new polynomials added in step 4.
  6. Output G

The polynomial Sij is commonly referred to as the S-polynomial, where S refers to subtraction (Buchberger) or syzygy (others). The pair of polynomials with which it is associated is commonly referred to as critical pair.

There are many ways to improve this algorithm beyond what has been stated above. For example, all the new elements of F can be reduced relative to each other before adding them. If the leading terms of fi and fj share no variables in common, then Sij will always reduce to 0 (if using only fi and fj for reduction), so it needn't be calculated at all.

The algorithm terminates because it is consistently increasing the size of the monomial ideal generated by the leading terms of our set F, and Dickson's lemma (or the Hilbert basis theorem) guarantees that any such ascending chain must eventually become constant.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics