|
INGOR
|
Greedy Hill-Climbing algorithm. More...
#include <algo/Greedy.h>
Public Member Functions | |
| ytNetwork * | Greedy_exec (Args *args) |
| Executes the HC algorithm. | |
| double | Greedy_trials (Args *args, GreedyWork *work, ytPCGraph *best_g) |
| Performs the HC algorithm GreedyWork::trials times. | |
| GreedyWork * | GreedyWork_new (Args *args) |
| Creates and initializes a new GreedyWork instance. | |
| ytGraph * | Greedy_graph (Args *args, ytGraph *g) |
| Performs the greedy algorithm and returns the result as graph. | |
Greedy Hill-Climbing algorithm.
See Greedy Hill-Climbing Algorithm for the usage of the algorithm.
Performs the greedy algorithm and returns the result as graph.
This is maily for performing the algorithm from the NNSR algorithm. This returns the ytGraph instance instead of ytNetwork. Therefore this omits the several processes for preparing ytNetwork instance to return.
Also this does not support following functions implemented in Greedy_exec().
| args | |
| g |
| double Greedy_trials | ( | Args * | args, |
| GreedyWork * | work, | ||
| ytPCGraph * | best_g ) |
Performs the HC algorithm GreedyWork::trials times.
| args | |
| work | |
| best_g |
| GreedyWork * GreedyWork_new | ( | Args * | args | ) |
Creates and initializes a new GreedyWork instance.
This refers to Args::data, Args::algoArgs, and Args::verbose.
| args | Arguments for the algorithm is given by Args::algoArgs field. |