Working with a giant matrix with Java
<p>I hava read a related question here <a href="http://stackoverflow.com/questions/1493155/the-right-way-to-manage-a-big-matrix-in-java">link text</a></p>

<p>It was suggested there to work with a giant file and then use RandomAccessFile. </p>

<p>My problem is that a matrix(consists of "0" and "1", not sparse) could be really huge. For example, a row size could be 10^10000. I need an efficient way to store such a matrix. Also, I need to work with such file (if I would store my matrix in it) in that way:</p>

<p>Say, I have a giant file which contains sequences of numbers. Numbers in a sequence are divided by ","(first number shows the raw number, remaining numbers show places in matrix where "1"s stay). Sequences are divided by symbol "|". In addition, there is a symbol "||" which divide all of sequences into two groups. (that is a view of two matrixes. May be it is not efficient, but I don't know the way to make it better. Do you have any ideas? =) ) I have to read, for example, 100 numbers from an each row from a first group (extract a submatrix) and determine by them which rows I need to read from the second group.
So I need the function seek(). Would it work with such a giant file?</p>

<p>I am a newbie. May be there are some efficient ways to store and read such a data?</p>
