private void RunPermutation(string characters) { Console.WriteLine("Starting permutation for " + characters + " - " + DateTime.Now.ToString()); Permutation.HomeGrown.AlgorithmHG a = new Permutation.HomeGrown.AlgorithmHG(characters, true); List<string> permutations = a.RunReturnAllPermutations(); Console.WriteLine("Done with permutation for " + characters + " - " + DateTime.Now.ToString()); Console.WriteLine("Total permutations: " + permutations.Count.ToString()); }
private string RunTest(string characters) { AlgorithmHG a = new AlgorithmHG(characters, false); string result = a.RunReturnValue(); return result; }