-
Notifications
You must be signed in to change notification settings - Fork 0
/
algorithm_buchberger_explorer_serial.hpp
63 lines (55 loc) · 2.59 KB
/
algorithm_buchberger_explorer_serial.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef __ALGORITHM_BUCHBERGER_EXPLORER_HPP_
#define __ALGORITHM_BUCHBERGER_EXPLORER_HPP_
/*****************************************************************************\
* This file is part of DynGB. *
* *
* DynGB is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* DynGB is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with DynGB. If not, see <http://www.gnu.org/licenses/>. *
\*****************************************************************************/
#include <list>
#include <vector>
#include <iostream>
#include <iterator>
using std::list;
using std::vector;
using std::cout; using std::endl;
#include "system_constants.hpp"
#include "fields.hpp"
#include "monomial.hpp"
#include "polynomial.hpp"
#include "critical_pair.hpp"
#include "normal_strategy.hpp"
#include "polynomial_array.hpp"
#include "polynomial_geobucket.hpp"
#include "polynomial_linked_list.hpp"
#include "polynomial_double_buffered.hpp"
#include "sugar_strategy.hpp"
#include "weighted_sugar_strategy.hpp"
#include "algorithm_buchberger_basic.hpp"
/**
@brief Alternate implementation of Buchberger’s algorithm,
for parallelization.
@ingroup GBComputation
@details Computes a Gröbner basis by selecting \c number_to_advance
pairs, reducing them as completely as possible, comparing their Hilbert
functions, accepting the one with the smallest Hilbert function, and
returning the others to the list of pairs.
*/
list<Abstract_Polynomial *> buchberger_explorer(
const list<Abstract_Polynomial *> &F,
SPolyCreationFlags method = SPolyCreationFlags::GEOBUCKETS,
StrategyFlags strategy = StrategyFlags::NORMAL_STRATEGY,
WT_TYPE * strategy_weights = nullptr,
const unsigned number_to_advance = 2
);
#endif