Difference between revisions of "Part 2 Test Files"

From CMSC 420
Line 9: Line 9:
 
*These are pretty general and rely on a generic BTree.  Some of the tests are pretty much just sanity checks, but the core functionality should be very well tested with this.
 
*These are pretty general and rely on a generic BTree.  Some of the tests are pretty much just sanity checks, but the core functionality should be very well tested with this.
 
**[http://www.glue.umd.edu/~teqdruid/BTreeTests.java BTreeTests.java]
 
**[http://www.glue.umd.edu/~teqdruid/BTreeTests.java BTreeTests.java]
 
  
 
== John's Part 2 Test Files ==
 
== John's Part 2 Test Files ==
Line 16: Line 15:
 
**[http://www.glue.umd.edu/~teqdruid/maxP3import.input.xml maxP3import.input.xml]
 
**[http://www.glue.umd.edu/~teqdruid/maxP3import.input.xml maxP3import.input.xml]
 
**[http://www.glue.umd.edu/~teqdruid/maxP3import.output.xml maxP3import.output.xml]
 
**[http://www.glue.umd.edu/~teqdruid/maxP3import.output.xml maxP3import.output.xml]
 
  
 
== Ryan's Nearest City Matlab Script Generator ==
 
== Ryan's Nearest City Matlab Script Generator ==
Line 24: Line 22:
 
*Also, this script can be modified (with relative ease) to check rangeCities. If I have the time I might make create that as well.
 
*Also, this script can be modified (with relative ease) to check rangeCities. If I have the time I might make create that as well.
 
**[http://www.wam.umd.edu/~rjmurphy/cmsc420/nearestCity.m nearestCity.m]
 
**[http://www.wam.umd.edu/~rjmurphy/cmsc420/nearestCity.m nearestCity.m]
 +
 +
==Mike's Java PMQuadtree Input Generator==
 +
*In my efforts to debug my PM Quadtree, I have developed a java program that creates xml input files for making random PM Quadtrees (with random cities and roads).  If someone could verify that my tests are congruent with their tests (as I am currently not passing the pm3 tests), that would be very helpful.
 +
**[http://www.doc-ent.com/meeshquest/PMTestFileMaker.java]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests.input.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests.input.xml.output.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests1.input.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests1.input.xml.output.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests2.input.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests2.input.xml.output.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests3.input.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests3.input.xml.output.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests4.input.xml]]
 +
**[http://www.doc-ent.com/meeshquest/PMJavaTests4.input.xml.output.xml]]

Revision as of 18:59, 11 May 2007

Upload and post Part 2 test files here.

You will need to right-click these and do a Save As... just copying/pasting them from your browser will not work.

If you have downloaded and ran someone's test files, mark on the wiki that you verify if outputs correctly. If you have a problem with a test file, mark it on the wiki and discuss it on the forum or possibly on the talk page (although more people would probably see it on the CS forum).

John's B Tree Test Files[edit]

  • Verified by: John, Maxim
  • These are pretty general and rely on a generic BTree. Some of the tests are pretty much just sanity checks, but the core functionality should be very well tested with this.

John's Part 2 Test Files[edit]

  • Verified by: John
  • I took Max's part3 test files and ripped whatever I could out of it, then corrected it for start/end ordering and such. Anyway, this should get you most of the way there. A more gnarly shortestPath test would be nice.

Ryan's Nearest City Matlab Script Generator[edit]

  • This script runs with Matlab, just input the number of cities you want to create and a filename to save the generated input file - nearestCity(numPoints, fileName). Basically, the script randomly picks two points in a 1024x1024 window, point A and B. Point A is used for reference, while point B is actually mapped. The distance between A and B represents the minimum distance all other points must have from the reference point A. As each new point is generated, a road is mapped from the new point to point B, this way roads shouldn't intersect. (Intersections will occur on a VERY, VERY rare basis.) Run the input file and check that the output finds the nearestCity "near". I didn't feel like creating the xml output, so I just look at the last line of the output for the nearest city.
  • I created 20 cities and that was sufficient for finding my errors. I have it so that Matlab plots the roads.
  • As a note - I was passing all the tests on Part 1 for nearest city and failing them on Part 2 - now I pass them.
  • Also, this script can be modified (with relative ease) to check rangeCities. If I have the time I might make create that as well.

Mike's Java PMQuadtree Input Generator[edit]

  • In my efforts to debug my PM Quadtree, I have developed a java program that creates xml input files for making random PM Quadtrees (with random cities and roads). If someone could verify that my tests are congruent with their tests (as I am currently not passing the pm3 tests), that would be very helpful.