From c1a3bb808acacc788e96c9d145e8c465ff4f3ab4 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 19:12:28 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 09c1df9..a85ce6f 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -45,7 +45,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou //Push permutation cost to the localCostVector. localCostVector.push_back(cost); counter++; - } while (std::next_permutation(myPerm.begin(), myPerm.end())); + } while (std::next_permutation(myPerm.begin()+1, myPerm.end())); // //find the lowest and add it to a lowest vector. // auto lowest = std::vector(1,localCostVector[0]);