Finding a submatrix with the maximum possible sum in O(n^2)

僤鯓⒐⒋嵵緔 提交于 2019-12-01 21:28:32

You (most likely) can't solve your problem in O(n^2), at least no such algorithm is known. The optimal solution has sub-cubic complexity, but it's very hard to implement and probably slower in practice. You can read a paper about it here.

The usual algorithm used is the O(n^3) one referenced in the question you found.

(S)He's a friend of yours.. so just ask him/her, and do share with us too :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!