An Efficient Dynamic Multi-Sources To Single-Destination (DMS-SD) Algorithm In Smart City Navigation Using Adjacent Matrix

Ziren Xiao, Ruxin Xiao, Chang Liu, Honghao Gao, Xiaolong Xu, Shan Luo, Xinheng Wang

TL;DR

This paper introduces a Modified Dijkstra (MD) algorithm designed for the "Dynamic Multi-Sources to Single-Destination" (DMS-SD) problem—essentially, finding the best place for a group of people to meet. By leveraging an adjacent matrix approach, the algorithm ensures all participants travel roughly equal distances to an optimal, dynamically changing destination while maintaining linear scalability as the number of users increases.

What Problem Does This Paper Address?

In the context of "Smart Cities" and Industry 5.0, navigation isn't just about getting one person from A to B. It’s often about coordination. Imagine a group of friends or business colleagues trying to meet for an event. If the destination is fixed, standard algorithms work fine. But what if the meeting point needs to be decided based on where everyone currently is? Or what if the venue changes suddenly due to a weather alert or a fire alarm?

This is the Dynamic Multi-Sources to Single-Destination (DMS-SD) problem. The challenge is two-fold:

  1. Efficiency: Minimizing the total distance traveled by the entire group.
  2. Fairness: Ensuring no single person has a significantly longer commute than the others (minimizing waiting time).

Existing solutions like the standard Dijkstra algorithm are built for point-to-point navigation. Conversely, Floyd’s algorithm can find paths between all pairs of points but is computationally "heavy" ($O(V^3)$), making it too slow for real-time use in large, complex city maps.

Methods

The authors propose a Modified Dijkstra (MD) algorithm that bridges the gap between Dijkstra’s speed and Floyd’s all-pairs utility.

  • Adjacent Matrix Integration: Instead of calculating every possible path in the city, the algorithm only calculates the shortest distances from each "source" (each person) to every other possible node in the map. These results are stored in a partial Adjacent Matrix.
  • Optimization Function: To pick the best destination, the algorithm uses a weighted formula: $D = \alpha D_{total} + \beta D_{sim}$.
  • $D_{total}$: The sum of distances from all users to a candidate node.
  • $D_{sim}$: A "similarity" metric that calculates the difference between users' travel distances to ensure fairness.
  • Dynamic Re-calculation: Because the algorithm is efficient, it can be run frequently. If users move or the environment changes, the "optimal" meeting point (the node that minimizes $D$) can shift in real-time.
  • Multi-Objective Support: The framework allows for different weights (e.g., prioritizing time over distance) by maintaining separate matrices for different metrics.

Datasets

The researchers evaluated their algorithm using simulated environments rather than static real-world datasets:

  • OpenAI Gym Environment: They built a custom navigation environment where they could render maps and simulate user movement.
  • Grid Maps: They tested on three specific map sizes: 22x10, 88x27, and 109x128 vertices. These maps included "walls" (obstacles) and accessible paths to simulate urban layouts.
  • Code Availability: The authors open-sourced their simulation code on GitHub to allow for reproducibility.

Key Insights and Ideas

  • Partial Knowledge is Enough: The biggest "aha moment" is that you don't need a full all-pairs shortest path matrix (like Floyd-Warshall) to solve the meeting point problem. You only need the rows of the matrix corresponding to the active users.
  • The "Moving Target" Phenomenon: In large maps, the optimal destination can "flicker" or shift as users move. The paper notes that users might occasionally make "wasted" movements if the destination changes frequently, highlighting a trade-off between absolute optimality and path stability.
  • Linear Scalability: Unlike many multi-agent problems that grow exponentially in complexity, this approach scales linearly with the number of people. If you double the number of users, the computation time roughly doubles, making it viable for large groups.

Key Results

  • Computation Speed: On the largest map (109x128), the algorithm found optimal solutions for seven users in roughly 60 seconds. While this sounds slow for a consumer app, it is orders of magnitude faster than Floyd’s algorithm, which the authors note could take "several hours" for the same task.
  • Optimality: The MD algorithm is exhaustive, meaning it is guaranteed to find the mathematically best meeting point based on the defined weights ($\alpha$ and $\beta$).
  • Fairness: By adjusting the $\beta$ weight, the system successfully forced the meeting point to a location that balanced the travel time for all participants, preventing the "first to arrive waits forever" scenario.

Limitations and Future Work

  • The "Isolated User" Problem: The authors admit a current flaw in "fairness." If one person is very far away from a tight-knit group, the algorithm might force the entire group to travel a long distance just to meet that one person in the middle. Future work will look at allowing isolated users to travel further to accommodate the majority.
  • Collision Avoidance: The current algorithm focuses on path planning and destination selection but does not explicitly handle multi-agent collision avoidance (preventing users from bumping into each other in tight corridors).
  • Real-World Traffic: The simulation assumes distance is a proxy for time. In a real smart city, factors like traffic congestion, public transit schedules, and weather would need to be integrated into the Adjacent Matrix values.

Summary updated

Abstract

Dijkstra's algorithm is one of the most popular clas-sic path-planning algorithms, achieving optimal solutions across a wide range of challenging tasks. However, it only calculates the shortest distance from one vertex to another, which is hard to directly apply to the Dynamic Multi-Sources to Single-Destination (DMS-SD) problem. This paper proposes a modified Dijkstra algorithm to address the DMS-SD problem, where the destination can be dynamically changed. Our method deploys the concept of the Adjacent Matrix from Floyd's algorithm and achieves the goal with mathematical calculations. We formally show that all-pairs shortest distance information in Floyd's algorithm is not required in our algorithm. Extensive experiments verify the scalability and optimality of the proposed method.
BibTeX
@inproceedings{xiao2022efficient,
  author = {Ziren Xiao and Ruxin Xiao and Chang Liu and Honghao Gao and Xiaolong Xu and Shan Luo and Xinheng Wang},
  title = {{An Efficient Dynamic Multi-Sources To Single-Destination (DMS-SD) Algorithm In Smart City Navigation Using Adjacent Matrix}},
  booktitle = {HCCS},
  year = {2022},
  url = {https://openreview.net/forum?id=f2CS2XWJj3},
}

Loading related content...

Figure