RPI-Subway-Challenge / subwayChallenge

Finds fastest path through all 472 NYC subway stations
https://en.wikipedia.org/wiki/Subway_Challenge
MIT License
8 stars 1 forks source link

working bfs traversal algorithm #82

Closed yeyun163 closed 1 year ago

yeyun163 commented 1 year ago

Implemented working bfs traversal algorithm which returns shortest path tree as a vector-> route between disconnected branches is not returned, and can be found with a helper function. Rewritten linedata.txt to be accurate, index of each station is arbitrary. NEW LINEDATA.TXT DOES NOT WORK WITH CURRENT MAIN.CPP. Current linedata.txt has missing stations, and has some unique stations sharing the same id. Currently, it represents a disconnected graph and cannot be fully traversed by BFS.