Premise: This problem might be already known, and I might be using the wrong wording, please refer me elsewhere if this is the case.
Quick Problem Overview: I have to store a high number of arrays of integers in order to avoid duplication. I am doing the following:
LinkedList<int[]> ArraysAlreadyUsed;
Upon using an array, I add it to the list. Before using an array I see if it is in the list. Since I need to use many high dimensional arrays I run into memory issues.
Question: What is a good/the best way of doing this in order to minimize the amount of memory occupied? Is there a way to represent such arrays with a hash string? And would this be better?