I will be running a genetic algorithm on my roommate\'s computer for the whole weekend, and I\'m afraid that it could run out of memory over such a long run. However, my alg
Just use WeakReferences for the discardable results, then they will be discarded if necessary for space reasons.
WeakReferences