Handle large data structure in Java

后端 未结 9 1647

I\'m working on a Java application that needs working on very large matrices. For example multiplying two 10 million * 10 million matrices! Of course the Java heap does not

9条回答
  •  没有蜡笔的小新
    2020-12-30 13:11

    The complexity of matrix multiplication, if carried out naively, is O(n^3), but more efficient algorithms do exist. Anyway for a 10 millions * 10 millions matrix this is going to take a very long time and you may will face the same heap probelm but with recursivity.

    If you're into complex maths you may find tool to help you in this article.

提交回复
热议问题