Easy implementation of Dijkstra's Algorithm. Shortest Path Algorithm using adjacency matrix and java
// A B C D E F
/*A*/ {{0, 3, 4, 7, 0, 0},
/*B*/ {3, 0, 5, 0, 8, 0},
/*C*/ {4, 5, 0, 2, 9, 0},
/*D*/ {7, 0, 2, 0, 6, 1},
/*E*/ {0, 8, 9, 6, 0, 3},
/*F*/ {0, 0, 0, 1, 3, 0}};
// A = 0 , B = 1, C =2, D = 3, E = 4, F =5
Please watch the previous Dijkstra algorithm theory video: • Dijkstra's Shortest Path Algorithm ( කෙටිම...
#ComputersAcademy #DijkstraAlgorithm#java #Netbeans