public static (int, int) CalculateComparationAndMoveCount(int count) { var array = RandomGenerator.Generate(count); var comparer = new MockComparer(); array.InsertionSort(comparer); return(comparer.ComparationCount, comparer.MoveCount); }
public static (int, int) CalculateComparationAndMoveCount(int count, IStepSequenceGenerator generator) { var array = RandomGenerator.Generate(count); var comparer = new MockComparer(); array.ShellSort(comparer, generator); return(comparer.ComparationCount, comparer.MoveCount); }