From cc3e3bd109d72d82826629b96f8e6721d5243cf7 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 30 Jun 2007 11:14:38 +0000 Subject: [PATCH] don't print as much --- src/genesorter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/genesorter.cpp b/src/genesorter.cpp index 7553688..3ce89ad 100644 --- a/src/genesorter.cpp +++ b/src/genesorter.cpp @@ -35,13 +35,13 @@ GeneSorter::ActionList GeneSorter::sort(const GeneOrder& go){ ActionList al; GeneOrder temp(go); while(inversionDistance(temp) > 0){ - cout << "Distance: " << inversionDistance(temp) << " : "; - copy(temp.begin(), temp.end(), ostream_iterator(cout, " ")); - cout << endl; + //cout << "Distance: " << inversionDistance(temp) << " : "; + //copy(temp.begin(), temp.end(), ostream_iterator(cout, " ")); + //cout << endl; ActionList safe = safeActions(temp); if (safe.size() > 0){ safe[0](temp); - cout << "Action: " << safe[0].toString() << " "; + cout << "Action: " << safe[0].toString() << endl; al.push_back(safe[0]); }else return ActionList(); //TODO: Need to handle hurdles. @@ -69,7 +69,7 @@ GeneSorter::ActionList GeneSorter::safeActions(const GeneOrder& go){ if (intervals[i].oriented && intervals[i].first != intervals[i].second){ SortAction sa(new ReverseAction(intervals[i])); size_t score = scoreAction(go,sa); - cout << "Inversion: " << min(intervals[i].first,intervals[i].second) << ":" << max(intervals[i].first,intervals[i].second)-1 << " Score: " << score << endl; + //cout << "Inversion: " << min(intervals[i].first,intervals[i].second) << ":" << max(intervals[i].first,intervals[i].second)-1 << " Score: " << score << endl; pq.push(pair(score,sa)); } } -- 2.39.2