31 nth_element(t.
begin(), middle, t.
end());
36 vector<Exponent> exps;
37 exps.reserve(varCount);
38 for (
size_t var = 0; var < varCount; ++var)
40 exps.push_back(a[var]);
44 vector<Exponent>::iterator middle = exps.begin() + exps.size() / 2;
45 nth_element(exps.begin(), middle, exps.end());
51 for (
size_t var = 1; var < varCount; ++var)
56 for (
size_t var = 0; var < varCount; ++var) {
59 for (; var < varCount; ++var)
60 if (a[var] != 0 && a[var] < min)
70 for (
size_t var = 0; var < varCount; ++var)
Term represents a product of variables which does not include a coefficient.