# Is it possible to selectively save the calculated values (array) at memory?

1. My calculation might reach at the limit of my computer's memory because so many output values like the array of a[i,j,k] were produced in the calculation. In order to retain memory, can be the calculated values selectively saved at the memory? For example, when a[i,j] (i=1~100, j=1~1000000) is calculated (the previous calculated value should be used as input parameter at the next step), is it possible that only one value of a[i,100] corresponding j=100 is saved at the memory after calculating corresponding to j=1~100 and then only another value of a[i,200] corresponding j=200 is saved at the memory after calculating corresponding to j=101~200 ... ? If possible, could you explain how to perform it?

2. Is there the limit of memory available in Mathematica? If any, what is the memory size of Mathematica 8?

-
Are you talking about using something like x[3] = 4; x[4] = x[3] + 1; x[3] =.; {x[3], x[4]} –  belisarius May 3 at 16:20
Regarding the memory issue, take a look at Memory Management –  amr May 3 at 18:04
Can you put in an If statement into your code such that you only save those values when an iterator that you run through is a multiple of 100 (ie. Mod[iterator, 100] == 0). You can use a dummy variable to save a value for the next iteration and then update it at each step of the loop. –  Jonathan Shock May 4 at 7:57