Class PathBestPruning
java.lang.Object
topics.backtracking.paths.PathSimple
topics.backtracking.paths.PathBest
topics.backtracking.paths.PathBestPruning
Shortest Simple Path (Branch invalid input: '&' Bound)
Optimizes the PathBest search space by immediately discarding (pruning)
branches that have already exceeded the current bestCost.
-
Field Summary
Fields inherited from class PathBest
bestCost, bestLength, bestPath -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PathBest
getBestCost, getBestPathMethods inherited from class PathSimple
backtracking, getNumberSolutions, getPathString, setSource, setTarget, setWeightMatrix, writeWeights
-
Constructor Details
-
PathBestPruning
public PathBestPruning(int n)
-
-
Method Details
-
backtrack
-