Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
Interval scheduling: Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 11:09, 14 December 2022
edit
Jarfuls of Tweed
(
talk
|
contribs
)
Extended confirmed users
798
edits
→
Weighted
:
fixed a typo
Tag
:
Visual edit
← Previous edit
Revision as of 22:47, 14 December 2022
edit
undo
Jarfuls of Tweed
(
talk
|
contribs
)
Extended confirmed users
798
edits
→
Weighted
:
fixed an error in the code
Tag
:
Visual edit
Next edit →
Line 52:
w[0]=0; p[0]=0; M[0]=0;
for(int i =
0
1
; i <
numOfVectors
numOfVector+1
; i++){
M[i] = max(w[i]+M[p[i]], M[i-1]);
}