Class GrevlexComparator

java.lang.Object
com.singularsys.extensions.polynomials.comparators.LexComparator
com.singularsys.extensions.polynomials.comparators.GrevlexComparator
All Implemented Interfaces:
Comparator<PNodeI>

public class GrevlexComparator extends LexComparator
Graded Reverse Lexical Order comparator. First orders by the total degree, then by reverse degree of rightmost entry. hence quadratic monomials in 3 variables are ordered as
 "x^2",   // (2,0,0)
 "x y",   // (1,1,0)
 "y^2",   // (0,2,0)
 "x z",   // (1,0,1)
 "y z",   // (0,1,1)
 "z^2",   // (0,0,2)
 "x",     // (1,0,0)
 "y",     // (0,1,0)
 "z",     // (0,0,1)
  
With higher degree terms higher, then those with the lowest power of z first, then with lowest power of y. Bracket are (deg x, deg y, deg z).

Note that variables are ordered in reverse alphabetical order so x > y > z.

See Cox, Little and O'Shea, Ideals, Varieties and Algorithms, pp57-58