Class PathBestPruning


public class PathBestPruning extends PathBest

Shortest Simple Path (Branch invalid input: '&' Bound)

Optimizes the PathBest search space by immediately discarding (pruning) branches that have already exceeded the current bestCost.

  • Constructor Details

    • PathBestPruning

      public PathBestPruning(int n)
  • Method Details

    • backtrack

      protected void backtrack(int current)
      Overrides:
      backtrack in class PathBest