Page 159 - Algorithms Notes for Professionals
P. 159

}

           private static void print(Comparable[] array)
       {http://stackoverflow.com/documentation/algorithm/5732/merge-sort#
               StringBuffer buffer = new
       StringBuffer();http://stackoverflow.com/documentation/algorithm/5732/merge-sort#
               for (Comparable value : array) {
                   buffer.append(value);
                   buffer.append(' ');
               }
               System.out.println(buffer);
           }

           public static void main(String[] args) {
               Comparable[] aux = new Comparable[array.length];
               print(array);
               MergeSortBU.sort(array, aux, 0, array.length - 1);
           }
       }




































































       colegiohispanomexicano.net – Algorithms Notes                                                           155
   154   155   156   157   158   159   160   161   162   163   164