Hi all, I can’t seem to find if this has been asked before (apologies if duplicate question):
On page 309 of EPI Java wrt to DP:
I’m unclear as to what “maximum subarray sum” means:
[…] we also return the maximum subarray sum l for a subarray ending at the last entry in L, and the maximum subarray sum r for a subarray starting at the first entry of R.
UPDATE 1:
I figured out that “maximum” in “maximum subarray sum” means “for all the subarrays possible, which subarray would have the largest sum.” Previously I was thought maximum was referring to the length of the subarray.
Less important now, but another point of ambiguity for me is the 2nd portion of the verbiage: “subarray ending at the last entry in L, and the maximum subarray sum r for a subarray starting at the first entry of R” (not sure the significance of the “last entry” vs. “first entry”)
kw: Dynamic Programming