Two Kadane Algorithms for the Maximum Sum Subarray Problem

ALGORITHMS(2023)

引用 0|浏览0
暂无评分
摘要
The maximum sum subarray problem is to find a contiguous subarray with the largest sum. The history of algorithms to address this problem is recounted, culminating in what is known as Kadane's algorithm. However, that algorithm is not the algorithm Kadane intended. Nonetheless, the algorithm known as Kadane's has found many uses, some of which are recounted here. The algorithm Kadane intended is reported here, and compared to the algorithm attributed to Kadane. They are both linear in time, employ just a few words of memory, and use a dynamic programming structure. The results proved here show that these two algorithms differ only in the case of an input consisting of only negative numbers. In that case, the algorithm Kadane intended is more informative than the algorithm attributed to him.
更多
查看译文
关键词
dynamic programming,Kadane's algorithm,linear algorithm,maximum sum subarray problem
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要