Content deleted Content added
Undid revision 389357847 by 63.238.139.239 (talk). Redundant with pseudocode; Wikipedia is not a code repository |
|||
Line 16:
Because of the way this algorithm uses optimal substructures (the maximum subarray ending at each position is calculated in a simple way from a related but smaller and overlapping subproblem, the maximum subarray ending at the previous position) this algorithm can be viewed as a simple example of [[dynamic programming]].
==Generalizations==
|