Interface AStarEstimator

All Known Implementing Classes:
AStarEuclideanEstimator, AStarManhattanEstimator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AStarEstimator
Estimates the cost of the shortest path from a vertex to the target.
Author:
Cristian Ivan, Cristian Frăsinaru
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    estimate(int vertex, int target)
    Estimates the cost to reach the target from the given node.
  • Method Details

    • estimate

      double estimate(int vertex, int target)
      Estimates the cost to reach the target from the given node.
      Parameters:
      vertex - The current vertex index.
      target - The target vertex index.
      Returns:
      The estimated cost to reach the target.