Several tests were performed to guarantee the correctness of the algorithm and the good performance of the applet. The test cases are presented in this document, along with links to execute them or download the graph input corresponding to the test.
For most of the following test cases, graphs have been provided. Selecting the execution link for the graphs will start the applet, and after the applet appears, it will automatically download and attempt to solve the graph.
Keep in mind that applets cannot access files on different servers, and these test cases are located on uhunix2
. This means many of the following tests will not run succesfully when the applet is executed from a file system path. All tests do run and produce the expected output, however, from my site.
Note that in the test case descriptions that follow, non-obstacles are shown using the '·
' character instead of spaces to improve the readability of the file in a browser. The actual files do not contain these symbols and instead use spaces. Each file is available for download by clicking the “download graph” links at the bottom of each test case.
These tests ensure the applet properly handles bad input regarding URL formatting, file validity, and file availability.
c
values is less than the amount of p
values.p
values is less than the amount of c
values.c
and p
matrices do not match the graph size defined on the first line.0x1b
.foo://bar
http://www.jade-cheng.com/uh/missing.graph
These tests ensure the applet solves valid graph files and all special cases appropriately.
C
for the graph is not large enough to clean even one vertex.C
for the graph is large enough to clean the entire map.8,8 ········ ··x····· ········ ······x· ··x·x·x· ········ ·x······ ··x····· 1,5 43 91 94 66 0 80 67 31 26 57 0 11 75 8 66 55 24 80 97 63 65 57 84 44 13 95 10 6 54 33 0 62 8 29 0 61 0 95 0 57 84 61 74 60 16 6 78 71 85 0 65 73 48 26 66 60 34 73 0 73 27 64 63 87 1186 30 46 20 91 0 58 67 25 68 46 0 13 32 98 26 45 8 1 25 51 19 4 66 35 72 88 23 65 5 57 0 32 35 55 0 12 0 83 0 21 87 69 9 8 97 17 93 19 33 0 96 31 70 4 50 14 4 20 0 35 57 42 59 85
Many small graphs were created and solved manually and were compared to the results of the applet. For all cases, the solutions match the expected output. Large cases are difficult to solve manually, but after so much thorough testing of the applet, I am extermely confident that the results it displays are accurate.
Return to the main page.
View the readme.
View the operation/user’s manual.
View the reference manual.