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

Please comment 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));
}

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!