I'm programming a genetic algorithm. Right now, I'm using arrays for everything: my individuals are composed of arrays of ints, my populations are arrays of individuals, I store information inside an array to keep track of it.

A huge limitation I'm encountering is running out of memory. I know GAs are memory intensive, but i wonder if my first step should be to make an easy change, by using something better than an array.