Question: Please comments on the code below; public class NetworkAlignment { public static void main ( String [ ] args ) { System.out.println ( Launching

Please comments on the code below;
public class NetworkAlignment {
public static void main(String[] args){
System.out.println("Launching network alignment memetic algorithm.");
long startTime = System.currentTimeMillis();
System.out.println("Initialising and loading data.");
NetworkAlignment na = new NetworkAlignment(args[0], args[1]);
long initialisationTime = System.currentTimeMillis();
System.out.println("Beginning memetic algorithm.");
na.runMemeticAlgorithm(1000,100,100);
long endTime = System.currentTimeMillis();
System.out.println("Time to initialise: "+(initialisationTime - startTime));
System.out.println("Time in memetic algorithm: "+(endTime - initialisationTime));
System.out.println("Total time: "+(endTime - startTime));
}
private List, Integer>> population;
private Graph graphOne;
private Graph graphTwo;
private final List graphOneVertices;
private final List graphTwoVertices;
private final Map graphOneVertexIndices;
private final Map graphTwoVertexIndices;
private Map> graphOneAdjacencies;
private Map> graphTwoAdjacencies;
private List> graphOneIndexAdjacencies;
private List> graphTwoIndexAdjacencies;
private final Random random;
private final int EDGEVALUE =1;
private final int upperbound;
private final int individualSize;
public NetworkAlignment(String graphOneFilename, String graphTwoFilename){
this.random = new Random();
this.graphOne = new UndirectedGraph();
this.graphTwo = new UndirectedGraph();

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!