2023 SPRING CS 445
PROJECT #7: COMPLEX SWAMP


REMOVE -ALL- COMMENTS OF ANY KIND FROM YOUR CODE BEFORE HANDIN IN &anp MAKE SURE ANY METHODS YOU FILL OUT / ADD / MODIFY ARE ALL AT THE BOTTOM OF THE FILE

The Assignment

This problem is a more complex version of the Simple Swamp of Lab #7. Now you must find and print ALL paths from the origin to the edge of the swamp. You will have multiple input files of incresing complexity.

printSwamp is NOT to be called in the code you hand in. It is just for debugging. Remove any calls to it from your handin version.

What You'll Need

Here are your input files. You cannot get credit for a higher (more difficult) input file unless your program correctly solves the lower (easier) files.

Here is what the output should look like for the above inputs if I run it separately on all four files:







You are given this starter file: Swamp.java

You may solve it any way you want - BUT - Here is a very good approach; a Depth First Search greedy algorithm