Hi all,
I need some help with Dijkstra's algorithm in C.
I've generated my adjacency matrix, that looks something like:
int mat[NB][NB] = {{0, 171, MAX, 132, [...]}, {171, 0, 30, 39, [...]}, , [...]};
I've found this implementation: http://www.answers.com/topic/dijkstra-s-algorithm-1 but the path is an 1-dimensional array and my matrix is a 2-dimensional array.
Is there a way to transform one to another? Or maybe someone has a method to deal with this kind of matrix.
Thanks in advance for any help