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