Efficiently computing alternative paths in game maps

Lingxiao Li, Muhammad Aamir Cheema, Mohammed Eunus Ali, Hua Lu, Huan Li

Research output: Contribution to journalArticleResearchpeer-review

1 Citation (Scopus)

Abstract

Alternative pathfinding requires finding a set of k alternative paths (including the shortest path) between a given source s and a target t. Intuitively, these paths should be significantly different from each other and meaningful/natural (e.g., must not contain loops or unnecessary detours). While finding alternative paths in road networks has been extensively studied, to the best of our knowledge, we are the first to formally study alternative pathfinding in game maps which are typically represented as Euclidean planes containing polygonal obstacles. First, we adapt the existing techniques designed for road networks to find alternative paths in the game maps. Then, based on our web-based system that visualises alternative paths generated by different approaches, we conduct a user study that shows that the existing road network approaches generate high-quality alternative paths when adapted for the game maps. However, these existing approaches are computationally inefficient especially when compared to the state-of-the-art shortest path algorithms. Motivated by this, we propose novel data structures and exploit these to develop an efficient algorithm to compute high-quality alternative paths. that shows that the existing road network approaches generate high-quality alternative paths in game maps. Our extensive experimental study demonstrates that our proposed algorithm is more than an order of magnitude faster than the existing approaches and returns alternative paths of comparable quality. Furthermore, our algorithm is comparable to a state-of-the-art shortest path algorithm in terms of running time.

Original languageEnglish
Pages (from-to)3321-3345
Number of pages25
JournalWorld Wide Web
Volume26
Issue number5
DOIs
Publication statusPublished - Sept 2023

Keywords

  • Alternative pathfinding
  • Diverse shortest paths
  • Game maps

Cite this