static void Main(string[] args) { var path = @"D:\algorithms\03._Алгебраические_алгоритмы\4.Fibo-19350-d13012\4.Fibo"; Console.WriteLine("-------------------GoldenRatio------------------------"); ITask goldenRatioTask = new GoldenRatioTask(); Tester goldenRatioTester = new Tester(goldenRatioTask, path); goldenRatioTester.RunTests(); Console.WriteLine("-------------------MatrixMultiplication------------------------"); ITask matrixMultiplicationTask = new MatrixMultiplicationTask(); Tester matrixMultiplicationTester = new Tester(matrixMultiplicationTask, path); matrixMultiplicationTester.RunTests(); Console.WriteLine("-------------------Iterative------------------------"); ITask iterativeTask = new IterativeTask(); Tester iterativeTester = new Tester(iterativeTask, path); iterativeTester.RunTests(); Console.WriteLine("-------------------Recursive------------------------"); ITask recursiveTask = new RecursiveTask(); Tester recursiveTester = new Tester(recursiveTask, path); recursiveTester.RunTests(); Console.ReadKey(); }
static void Main(string[] args) { var path = @"D:\algorithms\03._Алгебраические_алгоритмы\3.Power-19350-3eb875\3.Power\"; Console.WriteLine("-------------------Binary------------------------"); ITask binaryTask = new BinaryTask(); Tester binaryTaskTester = new Tester(binaryTask, path); binaryTaskTester.RunTests(); Console.WriteLine("-------------------Multiplication------------------------"); ITask multiplicationTask = new MultiplicationTask(); Tester multiplicationTaskTester = new Tester(multiplicationTask, path); multiplicationTaskTester.RunTests(); Console.WriteLine("-------------------Iterative------------------------"); ITask iterativeTask = new IterativeTask(); Tester iterativeTaskTester = new Tester(iterativeTask, path); iterativeTaskTester.RunTests(); Console.ReadKey(); }
static void Main(string[] args) { var path = @"D:\algorithms\03._Алгебраические_алгоритмы\5.Primes-19350-906510\5.Primes"; Console.WriteLine("-------------------EratosthenesLinier------------------------"); ITask eratosthenesLinierTask = new SieveOfEratosthenesLinierTask(); Tester eratosthenesLinierTester = new Tester(eratosthenesLinierTask, path); eratosthenesLinierTester.RunTests(); Console.WriteLine("-------------------EratosthenesOptimized------------------------"); ITask eratosthenesOptimizedTask = new SieveOfEratosthenesOptimizedTask(); Tester eratosthenesOptimizedTester = new Tester(eratosthenesOptimizedTask, path); eratosthenesOptimizedTester.RunTests(); Console.WriteLine("-------------------EratosthenesSimple------------------------"); ITask eratosthenesSimpleTask = new SieveOfEratosthenesSimpleTask(); Tester eratosthenesSimpleTester = new Tester(eratosthenesSimpleTask, path); eratosthenesSimpleTester.RunTests(); Console.WriteLine("-------------------IterativeOptimized------------------------"); ITask iterativeOptimizedTask = new IterativeOptimizedTask(); Tester iterativeOptimizedTester = new Tester(iterativeOptimizedTask, path); iterativeOptimizedTester.RunTests(); Console.WriteLine("-------------------Iterative------------------------"); ITask iterativeTask = new IterativeTask(); Tester iterativeTester = new Tester(iterativeTask, path); iterativeTester.RunTests(); Console.ReadKey(); }