I am unsure whether it will take more time to save 0.5 *4^7 *4^7 entries to RAM so that I only calculate once, or whether it would be better to calculate each element twice inside the double loop.Judging from your code, it may be the latter. But that's more a guess than anything else. Which one is faster for you is only something you can determine. Try both methods, see which one is faster. It's impossible for us to determine how fast you can claim memory on your OS/hardware, and how your box is going to behave if you're going to use a lot of memory.
In reply to Re: Efficiency of implementation
by JavaFan
in thread Efficiency of implementation
by azheid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |