From 02e5132a3db09d17c2e0faa07218819906de21e1 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 11:05:59 -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 c821f31..3b1f573 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -39,7 +39,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::cout << std::endl; //Push permutation cost to the localCostVector. localCostVector.push_back(cost); - } while (std::next_permutation(myPerm.begin(), myPerm.end()) && myPerm != nextPerm); + } while (std::next_permutation(myPerm.begin(), myPerm.end()) ); // //find the lowest and add it to a lowest vector. // auto lowest = std::vector(1,localCostVector[0]);