Preprint
Article

This version is not peer-reviewed.

Modified Algorithm for 2D Maximum Sum Subarray Problem

Submitted:

25 April 2026

Posted:

28 April 2026

You are already at the latest version

Abstract
This paper presents a two-phase adaptive algorithm to solve the 2-Dimensional Maximum Sum Sub-array Problem. By reframing the search order to establish a single-column baseline first, the algorithm generates mathematical pruning bounds in O(NM) time. These bounds are utilized in a second phase to skip unpromising multi-column scans in O(1) time. This “Two-Phase” approach achieves a quadratic best-case floor of O(M2 + NM), while significantly improving the expected performance across typical data distributions and maintaining the cubic worst-case. This adaptive strategy effectively bridges the gap between theoretical sub-cubic complexity and practical implementation.
Keywords: 
;  ;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated