Content deleted Content added
Tag: Reverted |
m Reverted edit by 194.32.112.17 (talk) to last version by Citation bot |
||
Line 48:
and easily obtained as the maximum of all values of <code>current_sum</code> seen so far, cf. line 7 of the algorithm.
As a [[loop invariant]], in the <math>j</math>th step, the old value of <code>
Therefore, <code>current_sum</code><math>+A[j]</math>{{NoteTag|
In the Python code below, <math>A[j]</math> is expressed as <code>x</code>, with the index <math>j</math> left implicit.
|