Skip to main content
QUICK REVIEW

[Paper Review] Empirical Time Complexity of Generic Dijkstra Algorithm

Piotr Jurkiewicz, Edyta Biernacka|arXiv (Cornell University)|Jun 10, 2020
Advanced Optical Network TechnologiesEngineering9 references5 citations
TL;DR

This paper independently implements and evaluates the Generic Dijkstra algorithm for optimal routing in elastic optical networks (EON), confirming its superior speed—averaging 2.3× faster than the Filtered Graphs algorithm—while empirically determining its time complexity as O(V²) in network size and O(log S) in edge units, with a non-monotonic runtime peak at 25% network utilization.

ABSTRACT

Generic Dijkstra is a novel algorithm for finding the optimal shortest path in both wavelength-division multiplexed networks (WDM) and elastic optical networks (EON), claimed to outperform known algorithms considerably. Because of its novelty, it has not been independently implemented and verified. Its time complexity also remains unknown. In this paper, we perform run-time analysis and show that Generic Dijkstra running time grows quadratically with the number of graph vertices and logarithmically with the number of edge units. We also discover that the running time of the Generic Dijkstra algorithm in the function of network utilization is not monotonic, as peak running time is at approximately 0.25 network utilization. Additionally, we provide an independent open source implementation of Generic Dijkstra in the Python language. We confirm the correctness of the algorithm and its superior performance. In comparison to the Filtered Graphs algorithm, Generic Dijkstra is approximately 2.3 times faster in networks with 25 to 500 nodes, and in 90% of calls its computation takes less time.

Motivation & Objective

  • To independently implement the Generic Dijkstra algorithm based solely on its original description to verify correctness and performance.
  • To evaluate the algorithm’s runtime performance and compare it directly with the established Filtered Graphs algorithm.
  • To empirically determine the time complexity of Generic Dijkstra with respect to network size, edge units, and network utilization.
  • To provide an open-source implementation for reproducibility and further research.
  • To resolve the lack of complexity analysis for this novel algorithm, which was previously unverified and unanalyzed.

Proposed method

  • Implemented the Generic Dijkstra algorithm from scratch in Python based exclusively on the original algorithmic description, ensuring fidelity to the specification.
  • Conducted extensive simulations on synthetic EON topologies with varying numbers of nodes (V), edge units (S), and network utilization levels.
  • Measured and compared the average call time of both Generic Dijkstra and Filtered Graphs across multiple network states and configurations.
  • Fitted empirical data to mathematical functions to determine orders of growth for runtime dependence on V, S, and network utilization.
  • Used cumulative distribution functions (CDFs) to compare relative performance across 90% of calls, providing statistical insight into runtime distribution.
  • Shared the full implementation and test suite in an open-source repository for community validation and reuse.

Experimental results

Research questions

  • RQ1What is the empirical time complexity of the Generic Dijkstra algorithm in terms of network size (V) and number of edge units (S)?
  • RQ2How does the runtime of Generic Dijkstra vary with network utilization, and is the relationship monotonic?
  • RQ3How does the performance of Generic Dijkstra compare to the Filtered Graphs algorithm in terms of average and per-call execution time?
  • RQ4Can the Generic Dijkstra algorithm be correctly and reliably implemented from the original description alone?
  • RQ5What are the practical performance gains of Generic Dijkstra in realistic EON scenarios with 25 to 500 nodes?

Key findings

  • Generic Dijkstra is on average 2.3 times faster than the Filtered Graphs algorithm, with a median speedup of 3.48× on CPython and 4.31× on PyPy.
  • The algorithm’s runtime grows quadratically with the number of vertices (t ∼ V²), indicating a higher asymptotic growth rate than Filtered Graphs.
  • Runtime increases logarithmically with the number of edge units (t ∼ log S), suggesting scalability in spectrum-rich networks.
  • The runtime is not monotonic with network utilization; it peaks at approximately 25% utilization, likely due to intermediate edge availability patterns.
  • For 90% of calls, Generic Dijkstra outperforms Filtered Graphs, with 87.1% of calls on CPython and 91.9% on PyPy being faster.
  • Despite its higher asymptotic complexity, Generic Dijkstra remains 30–50% faster than Filtered Graphs even at 500 nodes due to lower constant factors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.