Making a very large Java array

后端 未结 15 2185
鱼传尺愫
鱼传尺愫 2020-12-03 08:57

I\'m trying to find a counterexample to the Pólya Conjecture which will be somewhere in the 900 millions. I\'m using a very efficient algorithm that doesn\'t even require an

15条回答
  •  旧时难觅i
    2020-12-03 09:16

    I second @sfossen's idea and @Aaron Digulla. I'd go for disk access. If your algorithm can take in a List interface rather than a plain array, you could write an adapter from the List to the memory mapped file.

提交回复
热议问题