예제 #1
0
        public void quick3waySort()
        {
            int[] data = datasource;
            ArraySorter <int> .quick3waySort(data, comparison);

            Assert.IsTrue(data.isSorted(comparison));
        }
예제 #2
0
        public void parallelMergeSort()
        {
            int[] data = datasource;
            ArraySorter <int> .parallelMergeSort(data, comparison);

            Assert.IsTrue(data.isSorted(comparison));
        }
예제 #3
0
        public void selectionSort()
        {
            int[] data = datasource;
            ArraySorter <int> .selectionSort(data, comparison);

            Assert.IsTrue(data.isSorted(comparison));
        }
 public void quick3waySort() => ArraySorter <char> .quick3waySort(data);
 // [Benchmark]
 public void parallelMergeSort() => ArraySorter <char> .parallelMergeSort(data);
 public void mergeSort() => ArraySorter <char> .mergeSort(data);
 public void shellSort() => ArraySorter <char> .shellSort(data);
 public void insertionSort() => ArraySorter <char> .insertionSort(data);
 // [Benchmark]
 public void selectionSort() => ArraySorter <char> .selectionSort(data);