Explore Westonci.ca, the top Q&A platform where your questions are answered by professionals and enthusiasts alike. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Which algorithm is commonly used to find the shortest path in a graph where all edges have non-negative weights?
A) Dijkstra's algorithm
B) Prim's algorithm
C) Bellman-Ford algorithm
D) Kruskal's algorithm