假设您想从 A 点到达 B 点。您使用 Google Transit 路线,它会告诉您:
Route 1:
1. Wait 5 minutes
2. Walk from point A to Bus stop 1 for 8 minutes
3. Take bus 69 till stop 2 (15 minues)
4. Wait 2 minutes
5. Take bus 6969 till stop 3(12 minutes)
6. Walk 7 minutes from stop 3 till point B for 3 minutes.
总时间 = 5 次等待 + 40 分钟。
Route 2:
1. Wait 10 minutes
2. Walk from point A to Bus stop I for 13 minutes
3. Take bus 96 till stop II (10 minues)
4. Wait 17 minutes
5. Take bus 9696 till stop 3(12 minutes)
6. Walk 7 minutes from stop 3 till point B for 8 minutes.
总时间 = 10 次等待 + 50 分钟。
总而言之,Route 1 看起来好多了。然而,实际情况是69路公交车因为堵车晚了3分钟,结果我错过了6969路公交车。下一辆6969路公交车至少晚了30分钟,相当于5等待+70分钟(包括30米)在寒冷或炎热中等待)。如果谷歌真的宣传了这种可能性,那不是很好吗?我现在的问题是:考虑到时间表的不确定性,显示前 3 条路线的更好算法是什么?
谢谢!