Skip to main content

Dynamic Programming Approaches for Solving Shortest Path Problem in Transportation: Comparison and Application

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 617))

Abstract

This paper seeks to investigate the performance of two different dynamic programming approaches for shortest path problem of transportation road network in different context, including the Bellman’s dynamic programming approach and the Dijkstra’s algorithm. The procedures to implement the two algorithms are discussed in detail in this study. The application of the Bellman’s approach shows that it is computationally expensive due to a lot of repetitive calculations. In comparison, the Dijkstra’s algorithm can effectively improve the computational efficiency of the backward dynamic programming approach. According to whether the shortest path from the node to the original node has been found, the Dijkstra’s algorithm marked the node with permanent label and temporal label. In each step, it simultaneously updates both the permanent label and temporal label to avoid the repetitive calculations in the backward dynamic programming approach. In addition, we also presented an algorithm using dynamic programming theory to solve the K shortest path problem. The K shortest path algorithm is particular useful to find the possible paths for travelers in real-world. The computational performance of the three approaches in large network is explored. This study will be useful for transportation engineers to choose the approaches to solve the shortest path problem for different needs.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   349.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   449.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   449.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Aljazzar H, Leue SK (2011) A heuristic search algorithm for finding the k shortest paths. Artif Intell 175(18):2129–2154

    Article  MathSciNet  Google Scholar 

  2. Bauer R, Delling D (2009) SHARC: fast and robust unidirectional routing. ACM J Exp Algorithmics 14(2–4):1–29

    MathSciNet  MATH  Google Scholar 

  3. Bellman R (1958) On a routing problem. Q Appl Math 16:87–90

    Article  Google Scholar 

  4. Byers TH, Waterman MS (1984) Technical note—determining all optimal and near-optimal solutions when solving shortest path problems by dynamic programming. Oper Res 32(6):1381–1384

    Google Scholar 

  5. Delling D, Goldberg AV, Pajor T, Werneck RF (2013) Customizable route planning in road networks. Announced at SEA 2011 and SEA 2013, full version available online at http://research.microsoft.com/pubs/198358/crp_web_130724.pdf

  6. Denardo EV, Fox BL (1979) Shortest-route methods: 1. Reaching, pruning, and buckets. Oper Res 27:161–186

    Article  MathSciNet  Google Scholar 

  7. Dijkstra EW (1959) A note on two problems in connexion with graphs. Numer Math 1(1):269–271

    Article  MathSciNet  Google Scholar 

  8. Eppstein D (1998) Finding the k shortest paths. In: 35th IEEE symposium. SIAM J Comput 28(2):652–673

    Google Scholar 

  9. Feillet D, Dejax P, Gendreau M, Gueguen C (2004) An exact algorithm for the elementary shortest path problem with resource constraints: application to some vehicle routing problems. Networks 44:216–229

    Article  MathSciNet  Google Scholar 

  10. Floyd Robert W (1962) Algorithm 97: shortest path. Commun ACM 5(6):345

    Article  Google Scholar 

  11. Goldberg AV (2001) Shortest path algorithms: engineering aspects. In: ISAAC 2001, pp 502–513

    Google Scholar 

  12. Güner AR, Murat A, Chinnam RB (2009) Dynamic routing using real-time ITS information. Intelligent Vehicle Controls and Intelligent Transportation Systems—Proceedings of the 3rd International Workshop

    Google Scholar 

  13. Güner AR, Murat A, Chinnam RB (2012) Dynamic routing under recurrent and non-recurrent congestion using real-time ITS information. Comput Oper Res 39(2):358–373

    Article  Google Scholar 

  14. Hart PE, Nilsson NJ, Raphael B (1968) A formal basis for the heuristic determination of minimum cost paths. IEEE Trans Syst Sci Cybern SSC4 4(2):100–107

    Google Scholar 

  15. Holzer M, Schulz F, Wagner D (2008) Engineering multi-level overlay graphs for shortest-path queries. ACM JEA 13(2.5):1–26

    Google Scholar 

  16. Maue J, Sanders P, Matijevic D (2006) Goal-directed shortest-path queries using precomputed cluster distances. ACM J Exp Algorithmics 4007:316–327

    Article  Google Scholar 

  17. Maue J, Sanders P, Matijevic D (2010) Goal-directed shortest-path queries using precomputed cluster distances. J Exp Algorithmics 14:2.3.2–2.3.27

    Google Scholar 

  18. Pettie S (2004) A new approach to all-pairs shortest paths on real-weighted graphs. Theoret Comput Sci 312:47–74

    Article  MathSciNet  Google Scholar 

  19. Schulz F, Wagner D, Weihe K (2000) Dijkstra’s algorithm on-line: an empirical case study from public railroad transport. ACM JEA 5(12):1–23

    MathSciNet  MATH  Google Scholar 

  20. Seidel R (1995) On the all-pairs-shortest-path problem in unweighted undirected graphs. J Comput Syst Sci 51(3):400–403

    Google Scholar 

  21. Thorup M (1999) Undirected single-source shortest paths with positive integer weights in linear time. J ACM 46(3):362–394

    Article  MathSciNet  Google Scholar 

  22. Warshall S (1962) A theorem on Boolean matrices. J ACM 9(1):11–12

    Article  MathSciNet  Google Scholar 

  23. Wilson DB, Zwick U (2013) A forward-backward single-source shortest paths algorithm. In: IEEE 54th annual symposium on foundations of computer science, pp 707–716

    Google Scholar 

  24. Yen JY (1971) Finding the K-shortest loopless paths in a network. Manage Sci 17(1):712–716

    Article  MathSciNet  Google Scholar 

  25. Zhan F (1998) Three fastest shortest path algorithms on real road networks: data structures and procedures. J Geogr Inf Decis Anal 1(1):69–82

    Google Scholar 

Download references

Acknowledgements and Conflict of Interest Statement

This research is supported by the Natural Science Foundation of Zhejiang province (LQ17E080007), National Natural Science Foundation of China (71501009) and (51408323) and Sponsored by K. C. Wong Magna Fund in Ningbo University. The authors are very grateful to the anonymous reviewers for their valuable suggestions and comments. The author(s) declare(s) that there is no conflict of interest regarding the publication of this paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xuan Li .

Editor information

Editors and Affiliations

Appendix

Appendix

Matlab code for dynamic programming approach and Dijkstra’s algorithm to solving the shortest path problem on Sioux Fall network and Borman network.

figure a
figure b

Matlab code for solving the K shortest path problem

figure c

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Li, X., Ye, X., Lu, L. (2020). Dynamic Programming Approaches for Solving Shortest Path Problem in Transportation: Comparison and Application. In: Wang, W., Baumann, M., Jiang, X. (eds) Green, Smart and Connected Transportation Systems. Lecture Notes in Electrical Engineering, vol 617. Springer, Singapore. https://doi.org/10.1007/978-981-15-0644-4_12

Download citation

  • DOI: https://doi.org/10.1007/978-981-15-0644-4_12

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-15-0643-7

  • Online ISBN: 978-981-15-0644-4

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics