Skip to content
Snippets Groups Projects
Commit 6500808f authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Rearranged algorithm skeleton to give a more general search structure.

parent 27733038
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,9 @@ export function dfs(graph, source, destination) { ...@@ -13,10 +13,9 @@ export function dfs(graph, source, destination) {
// // base case // // base case
// // initiation // // initiation
// while (…) { // termination condition // while (…) { // termination condition
// // consecution (part i)
// // action // // action
// // early termination conditional // if (…) { // early termination conditional
// // consecution
// }
// // POSTPROCESSING: // // POSTPROCESSING:
// // base case // // base case
// for(…; // initiation // for(…; // initiation
...@@ -24,6 +23,10 @@ export function dfs(graph, source, destination) { ...@@ -24,6 +23,10 @@ export function dfs(graph, source, destination) {
// …) { // consecution // …) { // consecution
// // action // // action
// } // }
// return …;
// }
// // consecution (part ii)
// }
return undefined; // TODO: stub return undefined; // TODO: stub
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment