Interval scheduling: Difference between revisions

Content deleted Content added
Weighted: fixed a typo
Weighted: fixed an error in the code
Line 52:
w[0]=0; p[0]=0; M[0]=0;
 
for(int i = 01; i < numOfVectorsnumOfVector+1; i++){
M[i] = max(w[i]+M[p[i]], M[i-1]);
}