Skip to content

I can't pass some test case in the gradescope for project3 PartII & PartIII, can you help me to test the testcase for me after you finish thish project? #3

Answered by cy-Yin
sbwcwso asked this question in Q&A
Discussion options

You must be logged in to vote

I have just calculated the shortest distance for both actual and expected, which can be implemented and printed out by

System.out.println(dstToStart.get(endNodeId));

before the final path returned.

Just take case 1 as an example.

the shortest path distance (which is not equal to great-circle distance mentioned in Part III and implemented as a static method in GraphDB. the shortest path distance is the "navigation" distance) for actual is $3.6663282543965448$. In comparison, the shortest path distance is larger for expected which is $3.6676323939880024$.

PS: If you are curious about how to obtain the expected path's distance, the implementation is as follows.

I found out that the 48th node…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@sbwcwso
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@sbwcwso
Comment options

@cy-Yin
Comment options

@cy-Yin
Comment options

@sbwcwso
Comment options

Answer selected by sbwcwso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants