Frobby
0.9.5
|
This file contains functions that generate data. More...
#include <vector>
Go to the source code of this file.
Functions | |
void | generateLinkedListIdeal (BigIdeal &ideal, size_t varCount) |
Generate an ideal of the form , and so on. More... | |
void | generateKingChessIdeal (BigIdeal &ideal, size_t rowsAndColumns) |
Generate an ideal where is a generator when and indicate coordinates on a square chessboard where the move is a valid king's move. More... | |
void | generateKnightChessIdeal (BigIdeal &ideal, size_t rowsAndColumns) |
Generate an ideal where is a generator when and indicate coordinates on a square chessboard where the move is a valid knight's move. More... | |
void | generateRookChessIdeal (BigIdeal &bigIdeal, size_t n, size_t k) |
Generate an ideal in n*k variables. More... | |
void | generateMatchingIdeal (BigIdeal &bigIdeal, size_t n) |
Generate an ideal whose facets are the maximum matchings in an n-clique. More... | |
void | generateTreeIdeal (BigIdeal &ideal, size_t varCount) |
Generate an ideal in varCount variables with minimal generators given by. More... | |
bool | generateRandomEdgeIdeal (BigIdeal &ideal, size_t varCount, size_t generatorCount) |
Generate a random ideal where every edge is a product of two different variables. More... | |
bool | generateRandomIdeal (BigIdeal &bigIdeal, size_t exponentRange, size_t varCount, size_t generatorCount) |
Generate a random ideal with exponents in the range [0, exponentRange]. More... | |
void | generateRandomFrobeniusInstance (vector< mpz_class > °rees, size_t entryCount, const mpz_class &maxEntry) |
Generate a random vector of numbers whose gcd is 1. More... | |
This file contains functions that generate data.
They are NOT all random.
Definition in file randomDataGenerators.h.
void generateKingChessIdeal | ( | BigIdeal & | ideal, |
size_t | rowsAndColumns | ||
) |
Generate an ideal where is a generator when and indicate coordinates on a square chessboard where the move is a valid king's move.
Definition at line 102 of file randomDataGenerators.cpp.
void generateKnightChessIdeal | ( | BigIdeal & | ideal, |
size_t | rowsAndColumns | ||
) |
Generate an ideal where is a generator when and indicate coordinates on a square chessboard where the move is a valid knight's move.
Definition at line 113 of file randomDataGenerators.cpp.
void generateLinkedListIdeal | ( | BigIdeal & | ideal, |
size_t | varCount | ||
) |
Generate an ideal of the form , and so on.
Definition at line 31 of file randomDataGenerators.cpp.
void generateMatchingIdeal | ( | BigIdeal & | bigIdeal, |
size_t | n | ||
) |
Generate an ideal whose facets are the maximum matchings in an n-clique.
Definition at line 224 of file randomDataGenerators.cpp.
bool generateRandomEdgeIdeal | ( | BigIdeal & | ideal, |
size_t | varCount, | ||
size_t | generatorCount | ||
) |
Generate a random ideal where every edge is a product of two different variables.
Returns true if the requested number of generators was achieved.
Definition at line 392 of file randomDataGenerators.cpp.
void generateRandomFrobeniusInstance | ( | vector< mpz_class > & | degrees, |
size_t | entryCount, | ||
const mpz_class & | maxEntry | ||
) |
Generate a random vector of numbers whose gcd is 1.
Definition at line 460 of file randomDataGenerators.cpp.
bool generateRandomIdeal | ( | BigIdeal & | bigIdeal, |
size_t | exponentRange, | ||
size_t | varCount, | ||
size_t | generatorCount | ||
) |
Generate a random ideal with exponents in the range [0, exponentRange].
Returns true if the requested number of generators was achieved.
Definition at line 429 of file randomDataGenerators.cpp.
void generateRookChessIdeal | ( | BigIdeal & | bigIdeal, |
size_t | n, | ||
size_t | k | ||
) |
Generate an ideal in n*k variables.
Each facet corresponds to a way of placing rooks on an n*k chessboard without any rooks being able to take any other rook in one move.
Definition at line 171 of file randomDataGenerators.cpp.
void generateTreeIdeal | ( | BigIdeal & | ideal, |
size_t | varCount | ||
) |
Generate an ideal in varCount variables with minimal generators given by.
i.e. to get the minimal generators, take each square free monomial except the identity, and raise it to the power of varCount + 1 minus it's total degree.
Definition at line 145 of file randomDataGenerators.cpp.