From a834df1e16c1668a677b68fef6699371c4233d33 Mon Sep 17 00:00:00 2001 From: Jiaoyang Li <32028022+Jiaoyang-Li@users.noreply.github.com> Date: Wed, 24 Jul 2024 08:49:17 -0400 Subject: [PATCH] correct typos --- src/CBSHeuristic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CBSHeuristic.cpp b/src/CBSHeuristic.cpp index 48b10afd..d58a3ba4 100644 --- a/src/CBSHeuristic.cpp +++ b/src/CBSHeuristic.cpp @@ -369,9 +369,9 @@ int CBSHeuristic::minimumVertexCover(const vector& CG) } } else { - for (int i = 1; i < (int) indices.size(); i++) { - if (KVertexCover(subgraph, (int) indices.size(), num_edges, i, (int) indices.size())) { - rst += i; + for (int k = 1; k < (int) indices.size(); k++) { + if (KVertexCover(subgraph, (int) indices.size(), num_edges, k, (int) indices.size())) { + rst += k; break; } double runtime = (double) (clock() - start_time) / CLOCKS_PER_SEC;