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()]; }