Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

6 结语

过去十年中,交通网络最短路径算法的性能取得了惊人进展。尤其在道路网络路由方面,现代算法比标准方案最多快七个数量级。成功的方法利用了道路网络中使其比一般图更容易处理的不同性质,例如目标导向、强层次结构以及小分隔子的存在。虽然早期的一些加速技术高度依赖几何信息(毕竟道路网络嵌入在地球表面上),但当前的 state-of-the-art 算法都不显式使用顶点坐标(见表 1)。尽管仍有人偶尔开发并发表基于几何的方法,但它们始终被成熟技术支配。特别是,最近提出的 Arterial Hierarchies [260] 只与 CH(查询略慢)比较,却没有与此前发表的其他技术(如 CHASE、 HL 和 TNR)比较;后者很容易就能支配它。这说明,在这个快速发展的领域,研究成果往往需要很久才能传播到所有相关社区;我们希望这篇综述能改善这一状况。

需要注意,真实数据上的实验非常重要,因为生产数据的性质并不总能被简化模型和经验性假设准确捕捉。例如,人们普遍认为可以在性能几乎不损失的情况下为算法加入转弯惩罚,但这一点在 CH 上被证明是错误的 [76]。

近期发展的另一个重要教训是,仔细的工程优化对于释放现代计算机体系结构的全部计算能力至关重要。例如,CRP、CSA、HL、PHAST 和 RAPTOR 等算法,很大一部分高性能都来自对引用局部性和并行性的精心利用(包括指令级、核心级,甚至 GPU 级并行)。

对这里介绍的多种方法而言,最有力的验证是它们已经进入每天服务数百万用户的系统。这篇综述引用的论文中,有多位作者曾参与 Apple、 Esri、Google、MapBox、Microsoft、Nokia、PTV、TeleNav、TomTom 和 Yandex 等公司的路线规划项目。虽然公司通常不会公开实际使用的算法,但有些信息已经广为人知:TomTom 使用带 shortcut 的 Arc Flags 变体

执行时间依赖查询 [231];Microsoft 的 Bing Maps1 使用 CRP 进行道路网络路由;使用 OpenStreetMap 数据的流行路线规划引擎 OSRM [185] 使用 CH 处理查询;Transfer Patterns [24] 算法自 2010 年起就用于 Google Maps 的公共交通行程规划2 ;RAPTOR 目前用于 OpenTripPlanner3 。这些近期的成功并不意味着该领域的所有问题都已经解决。最终目标 ——全球范围的多模式行程规划器——尚未实现。Rome2Rio4 等系统提供了一个简化的起点,但更有用的系统还应考虑实时交通和公共交通信息、历史规律、时刻表约束以及货币成本,并以个性化方式把这些因素结合起来。高效解决如此一般的问题,似乎超出了当前算法的能力范围。不过,考虑到近期的发展速度,解决方案可能比预想中更近。

Table 3. Performance of various public transit algorithms on random queries. For each algorithm, the table indicates the implementation tested (which may not be the publication introducing the algorithm), the instance it was tested on, its total number of elementary connections (in millions) as well as the number of consecutive days they cover. A “p” indicates that the timetable is periodic (with a period of one day). The table then shows the criteria that are optimized (a subset of arrival times, transfers, full range, fares, and reliability), followed by total preprocessing time, average number of comparisons per stop, average number of journeys in the Pareto set, and average query times in milliseconds. Missing entries either do not apply (–) or are well-defined but not available (n/a).

inputcriteriaquery
algorithmimpl.nameconn.
[103]
dy.arr.
t
ran.
rng.
fare
rel.
prep.
[h]
comp.
/stop
jn.time
[ms]
TEDLondon5.11_• _◦◦◦◦–50.60.944.8
TDD[93]London5.11_• _◦◦◦◦–7.40.911.0
CH[136]Europe (lng)1.7p_• _◦◦◦◦_<_0.1_<_0.1n/a0.3
CSA[105]London4.91_• _◦◦◦◦–26.6n/a2.0
ACSA[242]Germany46.22_• _◦◦◦◦–n/an/a8.7
T. Patterns[27]Germany90.47_• _◦◦◦◦541–1.00.4
LD[93]London5.11_• __• _◦◦◦–15.61.828.7
MLS[93]London5.11_• __• _◦◦◦–23.71.850.0
RAPTOR[93]London5.11_• __• _◦◦◦–10.91.85.4
T. Patterns[27]Germany90.47_• __• _◦◦◦566–2.00.8
CH[136]Europe (lng)1.7p_• _◦• ◦◦_<_0.1_<_0.1n/a3.7
SPCS[105]London4.91_• _◦• ◦◦–372.598.2843.0
CSA[105]London4.91_• _◦• ◦◦–436.998.2161.0
ACSA[242]Germany46.22_• _◦• ◦◦8n/an/a171.0
T. Patterns[27]Germany90.47_• _◦• ◦◦541–121.222.0
rRAPTOR[105]London4.91_• __• _• ◦◦–1634.0203.4922.0
CSA[105]London4.91_• __• _• ◦◦–3824.9203.4466.0
T. Patterns[27]Germany90.47_• __• _• ◦◦566–226.039.6
MLS[93]London5.11_• __• _◦• ◦–818.28.8304.2
McRAPTOR[93]London5.11_• __• _◦• ◦–277.58.8100.9
MLS[93]London5.11_• __• _◦◦•–286.64.7239.8
McRAPTOR[93]London5.1
50
1_• __• _◦◦•–89.64.771.9

  1. http://www.bing.com/blogs/site_blogs/b/maps/archive/2012/01/05/ bing-maps-new-routing-engine.aspx ↩

  2. http://www.google.com/transit ↩

  3. http://opentripplanner.com ↩ ↩2

  4. http://www.rome2rio.com ↩