From 2d3912143bf127b1fbb38718ad43e834cce76beb Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 19:16:35 -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 f076e04..9ddff45 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -38,7 +38,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou do { double cost = 0; //Add up the cost of the current permutation. - for (int i = 1; i < myPerm.size(); i++) { + for (int i = 0; i < myPerm.size(); i++) { std::cout << myPerm[i].GetName() << " "; cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()]; }