diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 3b94aeb..914c3fb 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -35,6 +35,9 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::cout << nextPerm[i].GetName() << " "; } std::cout << std::endl; + if(rank == size-1){ + nextPerm = source; + } do { double cost = 0; //Add up the cost of the current permutation.