public static T[] Sort(T[] arr, SortingTechniques sortingAlgorithm) { switch (sortingAlgorithm) { case SortingTechniques.MERGE_SORT: return(MergeSort(arr, 0, arr.Length - 1)); default: break; } return(arr); }
public void SelectionSort(int[] arr) { SortingTechniques sample = new SortingTechniques(); var result = sample.SelectionSort(arr); }
public void InsertTest(int[] arr) { SortingTechniques sample = new SortingTechniques(); var result = sample.InsertTest(arr); }
public void BubbleSort(int[] arr) { SortingTechniques sample = new SortingTechniques(); var result = sample.BubbleSort(arr); }