Question:

Which of the following algorithms are used for finding the shortest path in an urban transportation network?

Show Hint

Dijkstra's algorithm is for single-source paths, while Floyd Warshall calculates all pairs shortest paths.
Updated On: Dec 22, 2025
  • Logit
  • Huff
  • Floyd Warshall
  • Dijkstra
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C, D

Solution and Explanation

In transportation and network analysis, finding the shortest path is a common problem. The Dijkstra Algorithm (Option D) and Floyd Warshall Algorithm (Option C) are commonly used for shortest path problems, but they have different applications.
- Dijkstra is a famous algorithm for finding the shortest path from a single source to all other nodes in a graph. It is often used for single-source shortest path problems in urban transportation.
- Floyd Warshall (Correct Answer) is an algorithm used for finding the shortest paths between all pairs of nodes in a weighted graph. It is particularly useful for all-pairs shortest path problems, making it well-suited for urban transportation networks where the distances between all locations need to be considered.
Thus, the correct choice for finding the shortest paths in a network is Floyd Warshall.
Final Answer: (C) Floyd Warshall
Was this answer helpful?
0
0

Questions Asked in GATE AR exam

View More Questions