コード例 #1
0
 public void Sort(IList <int> list)
 {
     Console.WriteLine("******Merge Sort*******");
     _timer.Start();
     Sort(list, new int[list.Count], 0, list.Count - 1);
     Console.WriteLine("Time taken to sort using merge sort = " + _timer.GetTimerValue() + " MilliSeconds");
 }
コード例 #2
0
ファイル: HeapSort.cs プロジェクト: sainathkorvi/Algorithms
 public void Sort(IList <int> list)
 {
     Console.WriteLine("******Heap Sort*******");
     _timer.Start();
     Sort(list, list.Count);
     Console.WriteLine("Time taken to sort using heap sort = " + _timer.GetTimerValue() + " MilliSeconds");
 }