Skip to content

Commit

Permalink
Bellman-Ford added. Close #33
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Rodríguez Mier committed Apr 7, 2013
1 parent d6341a4 commit 6556dee
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ public Result evaluate() {
return MazeSearch.executeJungSearch(graph, maze);
}
});

// Bellman-Ford
bench.add("Hipster-Bellman-Ford", new Algorithm() {
BellmanFord<Point> it; Maze2D maze;
public void initialize(Maze2D maze) {
it= AlgorithmIteratorFromMazeCreator.bellmanFord(maze, false);
this.maze = maze;
}
public Result evaluate() {
return MazeSearch.executeIteratorSearch(it, maze);
}
});

int index = 0;
for(String algName : bench.algorithms.keySet()){
Expand Down

0 comments on commit 6556dee

Please sign in to comment.