Skip to main content

Modification of Dijkstra’s Algorithm for Best Alternative Routes

  • Conference paper
  • First Online:
Proceedings of Eighth International Congress on Information and Communication Technology (ICICT 2023)

Abstract

Dijkstra’s algorithm (DA) is classified as a basic strategy for searching minimal routes from one point to another and found useful in several applications, such as in network routing protocols, setting of irrigation lines, and road transportation networks. This algorithm minimizes the time and distance covered in a mission-critical venture such as a road and fire accident rescue mission. However, the shortest-path-finding technique, as proposed by Dijkstra, may take the longest due to several constraints, such as queues formed from roadworks, bandits, kidnapping, or accidents, thereby making the shortest path inaccessible. This study aimed to develop a Modified Dijkstra Algorithm (MDA) for finding alternative routes moving from location A to another location B when the shortest route is inaccessible. The objectives of the study were to design a variant of Conventional Dijkstra's Algorithm (CDA); implement and evaluate its performance. The study used a 40-node graph with varying weights and arbitrary source nodes with designated destination nodes. Both CDA and MDA were implemented in a Python environment. The probabilities of the existence of alternative routes to the shortest path were derived using a random number generator. The comparative evaluation of both algorithms was carried out and the results were depicted using tables, graphs, histograms, and ogives. The average distance covered, number of routes, and probability cost was used as lead indicator for evaluation performance. The findings deduced that the MDA model provided alternative routes better than the CDA, especially when the minimal route is impassable, and proffered a better means of navigation whenever the shortest path is under constraints for safety and accessibility. This study recommends Modified Dijkstra’s Algorithm model to be used in Courier and logistic services, transportation systems, and as well as in engineering companies.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 229.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 299.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Institutional subscriptions

References

  1. Hart E, Nilson NJ, Raphael B (1968) A formal basis for the heuristic determination of minimum cost paths. IEEE Transp Syst Sci Cybernet 4(2):100–107

    Google Scholar 

  2. Charika J, Jitendra K (2013) Processing delay consideration in Dijkstra’s algorithm. Int J Adv Res Comp Sci Softw Eng Res 3(8):112–162

    Google Scholar 

  3. Bharath Uppalancha K (2015) Optimizing the Robot’s path using Dijkstra’s algorithm. Int J Innov Res Sci Eng Technol 4(6):451–459

    Google Scholar 

  4. Tirastittan P, Waiyawuththanapoom P (2014) Public transport planning system by Dijkstra’s algorithm: case study Bangkok metropolitan area. Int J Soc Behav Educ Econ Business Indust Eng 8(1):363–370

    Google Scholar 

  5. Gupta N, Mangla K, Jha AK, Umar M (2016) Applying Dijkstra’s algorithm in routing process. Int J New Technol Res 2(5):122–124. ISSN:2454-4116

    Google Scholar 

  6. Jain A, Datta U, Joshi N (2010) Implemented modification in Dijkstra’s algorithm to find the shortest path for N nodes with constraints. Int J Sci Eng Appl Sci 2(2):420–426

    Google Scholar 

  7. Jain V, Prasad JS (2017) Solving travelling salesman problem using greedy genetic algorithm GGA. Int J Eng Technol 9(2):1148–1154

    Google Scholar 

  8. Alam A, Faraq O (2019) Finding the shortest path for road network using Dijkstra’s algorithm. Bangladesh J Multidiscipl Sci Res 2(2):201–208, 366

    Google Scholar 

  9. Jain A, Datta U, Joshi N (2016) Implemented modification in Dijkstra’s algorithm to find the shortest path for ‘N’ nodes with constraint. Int J Sci Eng Appl Sci 2(2):101–112. ISSN: 2395-3470

    Google Scholar 

  10. Ratnasari A, Ardiani F, Nurvita F (2013) Penentuan Jarak Terpendek dan Jarak Terpendek Alternatif menggunakan Algoritma Dijkstra serta Estimasi Waktu Tempuh. Universitas Islam Indonesia, Yogyakarta. ISBN: 979-26-0266-6

    Google Scholar 

  11. Syahputra MFA, Devita RN, Siregar SA, Kirana KC (2016) Implementation of traveling salesman problem (TSP) based on Dijkstra’s algorithm in logistics system. Int J Electr Electron Eng 14(1):39–44

    Google Scholar 

  12. Ginting HN, Osmond AB, Aditsania A (2019) Item delivery simulation using Dijkstra algorithm for solving the traveling salesman problem. In: International conference on electronics representation and algorithm (ICERA 2019), J Phys Conf Ser 1201 012068, pp 1–9

    Google Scholar 

  13. Cao L, Zhao X, Zheng H, Zhao BY (2000) Atlas approximating shortest paths in social graphs. Computer Science Department, U. C. Santa Barbara

    Google Scholar 

  14. Curtin KM (2007) Network analysis in geographic information science, review, assessment, and projections, vol 34, no 2, pp 103–111

    Google Scholar 

  15. Joanna K, Pasieka M (2017) Cockroach swarm optimization algorithm for travel planning, enthropy, pp 213

    Google Scholar 

  16. Ravi Shankar N, Sireesha V (2017) Using modified Dijkstra’s algorithm for critical path method in a project network. Department of Applied Mathematics, GIS, GITAMUniversity, Visakhapatnam, India

    Google Scholar 

  17. Fontaine P, Taube F, Minner S (2020) Human solution strategies for the vehicle routing problem, experimental findings, and a choice-based theory. Comp Oper Res 120:1–16

    Google Scholar 

  18. Muhammed RW, Subhan HN, Dinur S (2021) Greedy. A-Star, and Dijkstra’s algorithms in finding the shortest path problem. Int J Adv Data Inform Syst 2(1)

    Google Scholar 

  19. Samah KAFA, Sharip AA, Musirin I, Sabri N, Salleh MH (2020) Reliability study on the adaptation of Dijkstra’s algorithm for gateway KLIA2 indoor navigation. Bull Electr Eng Inform 9(2):594–601. ISSN: 2302-9285

    Google Scholar 

  20. Orlin JB, Madduri K, Subramani K, Williamson M (2010) A faster algorithm for the single source shortest path problem with few distinct positive lengths. J Discr Algor 8:189–198

    Google Scholar 

  21. Gallo G, Pallottino S (1986) Shortest path methods, a unifying approach. Mathe Program Stud 26:38–64

    Google Scholar 

  22. Moore EF (1957) The shortest path through a maze. In: Proceedings of international symposium on switching theory, part II, Cambridge, Massachusetts, Harvard University Press, pp 285–292. MR 0114710

    Google Scholar 

  23. Glover F, Klingman D, Philips N (1985) A new polynomials bounded shortest paths algorithm. Oper Res 33:65–73

    Google Scholar 

  24. Gallo G, Pallottino S (1988) Shortest path algorithms. Ann Oper Res 13:3–79

    Google Scholar 

  25. Zhan FB, Noon CE (1998) Shortest path algorithms. An evaluation using real road networks. Transport Sci 32(1):65–73

    Google Scholar 

  26. Zhan FB (1997) Three fastest shortest path algorithms on real road networks. J Geogr Inform Decis Anal 1(1):70–82

    Google Scholar 

  27. Gutenschwager K, Volker S, Radtke A, Ulm H, Zeller G (2012) The shortest path: comparison of different approaches and implementations for the automatic routing of vehicles. In: Proceedings of the 2012 winter simulation conference, IEEE, Munich, Germany, pp 3312–3323

    Google Scholar 

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

    Article  MathSciNet  MATH  Google Scholar 

  29. Ahuja RK, Orlin JB (1993) Graph and network optimization. J Optim Oper Res UNESCO-EOLSS 11:265–270

    Google Scholar 

  30. Geisberger R, Shieferdecker D (2013) Advanced route planning in transportation networks. In: Proceedings of the 12th workshop on algorithm engineering and experiments (ALENEX’13), Universitat des Landes Baden Wurttemberg, Germa

    Google Scholar 

  31. Erickson J (2014) Algorithms, lecture 21, shortest paths, p 4. http://www.cs.uiuc.edu/~~jeffe/teacing/algorithms

  32. Cormen TH, Leiserson CE, Rivest RL, Clifford C (1993) Introduction to algorithms. MIT Press and McGraw-Hill

    Google Scholar 

  33. Sedgewick R, Wayne K (201) Algorithm pearson education

    Google Scholar 

  34. Aho AV, Hopcroft JE, Ullman JD (1987) Data structures and algorithms. Addison-Wesley, Reading, MA, U.S.A

    MATH  Google Scholar 

  35. Gbadamosi OA, Aremu DR (2020) Design of a modified Dijkstra’s algorithm for finding alternate routes for shortest path problems with huge costs. In: International conference in mathematics, computer engineering, and computer science (ICMCECS), IEEE, pp 1–6

    Google Scholar 

  36. Xia C, Zhang Y, Liu Y, Lin K, Chen J (2018) Path planning and energy flow control of wireless power sensor networks. Turkish J Electr Eng Comp Sci 26(5):2618–2612

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Omoniyi Ajoke Gbadamosi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gbadamosi, O.A., Aremu, D.R. (2024). Modification of Dijkstra’s Algorithm for Best Alternative Routes. In: Yang, XS., Sherratt, R.S., Dey, N., Joshi, A. (eds) Proceedings of Eighth International Congress on Information and Communication Technology. ICICT 2023. Lecture Notes in Networks and Systems, vol 695. Springer, Singapore. https://doi.org/10.1007/978-981-99-3043-2_20

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-3043-2_20

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-3042-5

  • Online ISBN: 978-981-99-3043-2

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics