Show / Hide Table of Contents

Interface IParameters

Interface that defines the required parameters to search for a solution to a puzzle.

Namespace: TreeProblemFramework.Solver

Properties

HeuristicPriority

Gets or sets the priority to determine which environments to expand the first based on their heuristic values.

Declaration
Priority HeuristicPriority { get; set; }
Property Value
Type Description
Priority

The heuristic priority.

SetSolutionsAsNotSeen

Gets or sets a value indicating whether a solution, once found, should be set as not seen. This allows for finding a same solution that is reached through different paths.

Declaration
bool SetSolutionsAsNotSeen { get; set; }
Property Value
Type Description
System.Boolean

True if set solutions as not seen, false if not.

TraverseAlgorithm

Gets or sets the algorithm to be used in order to find a solution to a puzzle.

Declaration
Algorithm TraverseAlgorithm { get; set; }
Property Value
Type Description
Algorithm

The search algorithm.

Methods

ComputeHeuristic(IEnvironment)

Method that calculates the heuristic of a given environment against the solution.

Declaration
double ComputeHeuristic(IEnvironment env)
Parameters
Type Name Description
IEnvironment env

The environment from which to compute its heuristic value.

Returns
Type Description
System.Double

The heuristic value.

ComputeSummary(IEnvironment)

Calculates the summary, which should be unique, of a given environment.

Declaration
string ComputeSummary(IEnvironment env)
Parameters
Type Name Description
IEnvironment env

The environment from which to compute its summary.

Returns
Type Description
System.String

An string representation of the environment's summary.

Back to top TreeProblemFramework from Ecuador.