All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aima.core.search.framework.evalfunc.PathCostFunction Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

The newest version!
package aima.core.search.framework.evalfunc;

import aima.core.search.framework.Node;

/**
 * Artificial Intelligence A Modern Approach (3rd Edition): page 78.
*
* * @author Ciaran O'Reilly * */ public class PathCostFunction { public PathCostFunction() { } /** * * @param n * @return the cost, traditionally denoted by g(n), of the path from the * initial state to the node, as indicated by the parent pointers. */ public double g(Node n) { return n.getPathCost(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy