From 239b501921ef28c77317583e719f07379221d318 Mon Sep 17 00:00:00 2001 From: pfaure Date: Mon, 11 May 2020 09:35:35 +0200 Subject: [PATCH] =?UTF-8?q?Version=20Fonctionnelle=20:=20Impl=C3=A9mentati?= =?UTF-8?q?on=20de=20la=20classe=20Launch,=20de=20la=20fonction=20IsValid?= =?UTF-8?q?=20de=20la=20classe=20BinaryHeap.=20Mise=20en=20place=20du=20co?= =?UTF-8?q?ntrole=20de=20la=20validit=C3=A9=20du=20tas=20dans=20Dijkstra?= =?UTF-8?q?=20(et=20A*).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortestpath/AStarAlgorithm.java | 159 ++---------------- .../shortestpath/DijkstraAlgorithm.java | 27 +-- .../graphs/algorithm/utils/BinaryHeap.java | 12 +- .../org/insa/graphs/gui/simple/Launch.java | 26 +-- 4 files changed, 59 insertions(+), 165 deletions(-) diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java index 3bb2992..7eac184 100644 --- a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java @@ -1,161 +1,32 @@ package org.insa.graphs.algorithm.shortestpath; import org.insa.graphs.model.*; - -import java.util.ArrayList; -import java.util.Collections; - import org.insa.graphs.algorithm.AbstractInputData.Mode; -import org.insa.graphs.algorithm.AbstractSolution.Status; -import org.insa.graphs.algorithm.utils.*; public class AStarAlgorithm extends DijkstraAlgorithm { public AStarAlgorithm(ShortestPathData data) { super(data); } - - @Override - protected ShortestPathSolution doRun() { - - BinaryHeap