// Floyd-Warshall algorithm - recursive version (for illustration) import java.util.*; import java.io.*; public class FloydWarshallRec { // Debugging for internal use. private static final boolean debug = false; int numVertices; // Number of vertices (when initialized). double[][] adjMatrix; // The adjacency matrix (given as input). double[][] D; // Matrix used in dynamic programming. public void initialize (int numVertices) { this.numVertices = numVertices; // Initialize D matrices. D = new double [numVertices][]; for (int i=0; i < numVertices; i++){ D[i] = new double [numVertices]; } } // Recursive computation of D. k is the "k" in "S_k". double computeD (int k, int i, int j) { // INSERT YOUR CODE HERE. } public void allPairsShortestPaths (double[][] adjMatrix) { this.adjMatrix = adjMatrix; for (int i=0; i