From e0c9e7513073549afc81411fe583d566fd4b03c7 Mon Sep 17 00:00:00 2001 From: "Brady J. Garvin" <bgarvin@cse.unl.edu> Date: Mon, 2 Oct 2023 10:42:25 -0500 Subject: [PATCH] Switched selected graph search to the recursive DFS. --- graph-search/src/features/search/solution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph-search/src/features/search/solution.js b/graph-search/src/features/search/solution.js index da0ee23..94ab48c 100644 --- a/graph-search/src/features/search/solution.js +++ b/graph-search/src/features/search/solution.js @@ -29,7 +29,7 @@ function formatSolution(solution) { } export function Solution(props) { - const search = bestFirst; + const search = recursiveDFS; const firstSolution = search(firstExample, 'a', 'd'); const secondSolution = search(secondExample, '123', '321'); return ( -- GitLab