Esempio n. 1
0
 public void printResult()
 {
     int[] arr = new int[] { 5, 3, 7, 1, 9, 2, 4, 6, 8 };
     PrintMethod.printArray1("Bubble Sort", arr);
     bubbleSort(arr);
     PrintMethod.printArray("Bubble Sort", arr);
 }
Esempio n. 2
0
 public void printResult()
 {
     int[] arr = new int[] { 12, 11, 13, 5, 6, 7 };
     PrintMethod.printArray1("Marge Sort", arr);
     sort(arr, 0, arr.Length - 1);
     PrintMethod.printArray("Marge Sort", arr);
 }
Esempio n. 3
0
 public void printResult()
 {
     int[] arr = new int[] { 10, 7, 8, 9, 1, 5 };
     PrintMethod.printArray1("Quick Sort", arr);
     sort(arr, 0, arr.Length - 1);
     PrintMethod.printArray("Quick Sort", arr);
 }
Esempio n. 4
0
        public void printResult()
        {
            int[] arr = { 2, 4, 5, 3, 1 };
            PrintMethod.printArray1("Stooge Sort", arr);
            stoogesort(arr, 0, arr.Length - 1);

            Console.WriteLine();
            PrintMethod.printArray("Stooge Sort", arr);
            Console.WriteLine();
        }