计算机科学 > 数据结构与算法
[提交于 2019年7月31日]
标题:"Sliced" Subwindow Search: a Sublinear-complexity Solution to the Maximum Rectangle Problem
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Considering a 2D matrix of positive and negative numbers, how might one draw a rectangle within it whose contents sum higher than all other rectangles'? This fundamental problem, commonly known the maximum rectangle problem or subwindow search, spans many computational domains. Yet, the problem has not been solved without demanding computational resources at least linearly proportional to the size of the matrix. In this work, we present a new approach to the problem which achieves sublinear time and memory complexities by interpolating between a small amount of equidistant sections of the matrix. Applied to natural images, our solution outperforms the state-of-the-art by achieving an 11x increase in speed and memory efficiency at 99% comparative accuracy. In general, our solution outperforms existing solutions when matrices are sufficiently large and a marginal decrease in accuracy is acceptable, such as in many problems involving natural images. As such, it is well-suited for real-time application and in a variety of computationally hard instances of the maximum rectangle problem.
提交历史
来自:Max Reuter[v1] 2019年7月31日 星期三 23:21:52 UTC