Home > Back-end > For help about the nation's train schedules program save time algorithm is a problem
For help about the nation's train schedules program save time algorithm is a problem
Time:09-24
As title, using Floyd algorithm can solve the problem of shortest path, but cannot be solved in the calculation of the time from one station to another station when the problems of waiting time, waiting time should be how to join the calculation, I ask you,
CodePudding user response:
12306 internal railway scheduling, how is work? This is also a problem worth thinking about, I help you, I am also learning,
CodePudding user response:
Can be thought of waiting time of each station is a constant