Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ブルートフォースを使用した最大部分配列問題の実行時/メモリの複雑さは?
それらをさらに最適化できますか? 特にメモリの複雑さ?
ありがとう、
ブルート フォースは Omega(n^2) です。分割統治を使用すると、Theta(n lg n) の複雑さでそれを行うことができます。詳細については、Introduction to Algorithmsなどの多くの書籍や、この講義などの Web 上のさまざまなリソースを参照してください。