Skip to content

Commit

Permalink
better makefile, fixed index error
Browse files Browse the repository at this point in the history
  • Loading branch information
profgiuseppe committed Mar 21, 2016
1 parent 94ddde1 commit 7f1b2de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
alignbucket:
g++ -o alignbucket src/alignbucket.cpp -lgmpxx -lgmp -lboost_program_options

clean:
rm alignbucket
4 changes: 1 addition & 3 deletions src/alignbucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ void print_intervals(vector<pair<int, int> > intervals)
int end = it->second;
cout << ll << ", " << end << endl;
}

return intervals;
}


Expand Down Expand Up @@ -332,7 +330,7 @@ int main(int argc, const char* argv[]) {
mpz_class M = sumsigma[upper] * (sumS[upper] + 1);
p[i] = -1;
B[i] = M;
for (int k = 0; k <= i; k++) {
for (int k = 1; k <= i; k++) {
int lower = k - 1;
M = cost(lower + 1, upper, sumS, sumsigma);
if (B[i] > M + B[lower]) {
Expand Down

0 comments on commit 7f1b2de

Please sign in to comment.