/****************************************************************************** *** FILE: floyd.cpp *** DATE: 10/16/2003 *** DESC: This program illustrates the dynapic programming technique applied *** to the Shortest Path problem. Floyd's algorithm is implemented to *** find the prices of all shortest paths in a N-vertix graph. ******************************************************************************/ #include #include #include #include using namespace std; #include #define DEBUG_OUTPUT typedef unsigned int *TPInt; // new type - pointer to an integer const unsigned int INFINITY = 0xFFFFFFFF; void print_distances(TPInt *W, int N) { int i, j; cout<<"\n "; for(j=0;j1 && (N=atoi(argv[1]))) ? N : 16; cerr<<"Generating a random adjacent matrix for a digraph of "<