1
0
This commit is contained in:
2025-10-10 02:12:44 +02:00
commit dac3abf431
212 changed files with 475579 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package adda.ej1.common;
import java.util.function.Predicate;
public class HuertosHeuristic {
public static Double heuristic(
HuertosVertex v1,
Predicate<HuertosVertex> goal,
HuertosVertex v2) {
// MAXIMO DE VERDURAS PLANTABLES DE v1.index() HASTA DatosHuertos.getN()
return (double) DatosHuertos.getN() - v1.index();
}
}