public void Should_get_a_result_of_4243395() { var problem = new KnapsackFileReader(@".\knapsack\knapsack_2_hw.txt").Read(); var ks = new KnapsackOptimizedSolver(problem); var result = ks.Execute(); result.ShouldEqual(4243395); }
public void Should_get_a_result_of_27000() { var problem = new KnapsackFileReader(@".\knapsack\knapsack_1_df04.txt").Read(); var ks = new KnapsackIterativeSolver(problem); var result = ks.Execute(); result.ShouldEqual(27000); }
public void Should_get_a_result_of_3067036() { var problem = new KnapsackFileReader(@".\knapsack\knapsack_2_df03.txt").Read(); var ks = new KnapsackOptimizedSolver(problem); var result = ks.Execute(); result.ShouldEqual(3067036); }