Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String a[]){
- arrayGenerator a1 = new arrayGenerator();
- for(int i = 10;i <=2010 ;i+=10){
- long avg = 0;
- for (int j = 0; j <= 2500;j++){
- int[] arr1= a1.createReverse(i);
- long start_time = System.nanoTime ();
- new MyInsertionSort().insertSort(arr1);
- long execution_time = (System.nanoTime() - start_time);
- avg +=execution_time;
- }
- System.out.println(avg / 2500);
- }
- }
Add Comment
Please, Sign In to add comment