Esempio n. 1
0
 public SortingHandler(Queue <Algorithm> algorithms, Serialize serialiser, SortingWindow Window, string name, bool save)
 {
     Algorithms    = algorithms;
     this.Window   = Window;
     Serializer    = serialiser;
     SortSummaries = new List <SortSummary>();
     Name          = name;
     ShouldSave    = save;
 }
 /// <summary>
 /// CYCLE-SORT
 /// Help with implementation - https://www.geeksforgeeks.org/cycle-sort/
 /// </summary>
 public CycleSort(int sleepTime, SortingWindow window, string name) : base(sleepTime, window, name)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// SELECTION-SORT
 /// https://en.wikipedia.org/wiki/Selection_sort
 /// </summary>
 public SelectionSort(int sleepTime, SortingWindow window, string name) : base(sleepTime, window, name)
 {
 }
Esempio n. 4
0
 public Algorithm(int sleepTime, SortingWindow window, string name)
 {
     Window    = window;
     SleepTime = sleepTime;
     Name      = name;
 }