INGOR
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Greedy Class Reference

Greedy Hill-Climbing algorithm. More...

#include <algo/Greedy.h>

Public Member Functions

ytNetworkGreedy_exec (Args *args)
 Executes the HC algorithm.
 
double Greedy_trials (Args *args, GreedyWork *work, ytPCGraph *best_g)
 Performs the HC algorithm GreedyWork::trials times.
 
GreedyWorkGreedyWork_new (Args *args)
 Creates and initializes a new GreedyWork instance.
 

Detailed Description

Greedy Hill-Climbing algorithm.

See Greedy Hill-Climbing Algorithm for the usage of the algorithm.

Member Function Documentation

◆ Greedy_trials()

double Greedy_trials ( Args args,
GreedyWork work,
ytPCGraph best_g 
)

Performs the HC algorithm GreedyWork::trials times.

Parameters
args
work
best_g
Returns
best score during the trials.

◆ GreedyWork_new()

GreedyWork * GreedyWork_new ( Args args)

Creates and initializes a new GreedyWork instance.

This refers to Args::data, Args::algoArgs, and Args::verbose.

Parameters
argsArguments for the algorithm is given by Args::algoArgs field.

The documentation for this class was generated from the following file: