Submitted:
25 April 2026
Posted:
28 April 2026
You are already at the latest version
Abstract
Keywords:
1. Background
2. Formal Pruning Logic
3. Two-Phase Adaptive Search
- Phase
- 1: Baseline and Bound Preparation: The algorithm begins with a mandatory pass to initialize the search environment. It performs a row scan of each row i to find its maximum , simultaneously constructing the rowMaxPrefixSum bound array. It then performs a column scan of each column j to find , simultaneously constructing the columnMaxPrefixSum. The results from both row and column baseline scans update the , establishing a high pruning floor immediately. Simultaneously, a 2D Summed Area Table (SAT) [5] is constructed.
- Phase
- 2: Multi-Column Pruning: This phase executes the adaptive search by iterating through all multi-column pairs . For each pair, if the upper bound derived from columnMaxPrefixSum is no greater than , the entire region is bypassed. Otherwise, the vertical worker performs a scan, utilizing the SAT for constant-time row-sum retrieval and rowMaxPrefixSum to terminate early if no improvement over is mathematically possible.
4. Implementation
| Algorithm 1 PrunedKadane1D Vertical Worker |
|
| Algorithm 2 Adaptive 2D Search Manager |
|
5. Complexity Analysis
| Case | Complexity | Condition |
|---|---|---|
| Worst-Case | Late discovery of global max or loose heuristics | |
| Empirical Benchmark | Pruned | Uniformly distributed values (stress-test environment) |
| Best-Case | All multi-column regions pruned after Phase 1 |
6. Experimental Results and Discussion
7. Performance Comparison
| Metric | Kadane 2D | Takaoka | Adaptive Pruned |
|---|---|---|---|
| Complexity | to | ||
| Memory |
8. Extensibility
8.1. Parallelization
8.2. Multi-Dimensional Case
8.3. Greedy Search Order
9. Conclusion
Acknowledgments
References
- Bentley, J. Programming Pearls: Algorithm Design Techniques. Commun. ACM 1984, 27(9), 865–873. [Google Scholar] [CrossRef]
- Kadane, J. B. Two Kadane Algorithms for the Maximum Sum Subarray Problem. Algorithms 2023, 16(11), 519. [Google Scholar] [CrossRef]
- Takaoka, T. Efficient algorithms for the maximum subarray problem by distance matrix multiplication. ENTCS 2002, 66(1), 191–200. [Google Scholar] [CrossRef]
- Land, A. H.; Doig, A. G. An automatic method of solving discrete programming problems. Econometrica 1960, 28(3), 497–520. [Google Scholar] [CrossRef]
- Crow, F. C. Summed-area tables for texture mapping. ACM SIGGRAPH Comput. Graph. 1984, 18(3), 207–212. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).