Пример #1
0
    public static void Main(string[] args)
    {
        int[]     numbers = new int[20];
        SortTests obj     = new SortTests();

        obj.ReadFromFile(numbers);
        obj.DisplayArray(numbers);

        Console.ReadLine();
    }
Пример #2
0
 public static void Sort()
 {
     SortTests.TestOrdersOfMagnitudeForSortFunctions(new Dictionary <string, SortTests.Sort>()
     {
         ["Merge"]     = SortFunctions.MergeSort,
         ["Quick"]     = SortFunctions.QuickSort,
         ["Insertion"] = SortFunctions.InsertionSort,
         ["Heap"]      = SortFunctions.HeapSort,
         ["Bubble"]    = SortFunctions.BubbleSort
     });
     Wait();
 }