Home > Software engineering >  Vb defined in a two dimensional array of very large data memory, what's the solution?
Vb defined in a two dimensional array of very large data memory, what's the solution?

Time:04-09

, using vb to write a pick of the double chromosphere programs will be the double chromosphere 17721088 note number every note number is divided into two attributes: the inherent relationship and attribute, the inherent attribute is the number of such as AC values, parity rate fixed attributes, such as relationship attribute is the note number and recent period the relationship between the lottery number attribute, such as settling down from the previous number several number attribute,
Now I put the two attributes are transformed to a decimal number to identify, probably inherent attribute identification range between 0-500000 (the actual existence of attribute identification is not so much), the relationship between attribute identification range between 0-1200000 about (the same real property identification is not that much), and now I'm going to do the following processing
Define a 2 d array Public HaoMaSX (500000, 1200000) As an Integer to count of the number of the same attributes note number, if the note is the attribute of the selected number
Such as: 01, 02 3 4 5 6 + 01 (inherent attribute identifier is 12345, the relationship between attribute id is 123456789, the operation HaoMaSX (12345123567 89)=HaoMaSX + 1 (12345, 123456789), the results for 1)
01, 02, 03 04 05 6 + 02 (inherent attribute identification is also 12345, the relationship between attribute identification is also 123456789, the operation HaoMaSX (12345123567 89)=HaoMaSX (12345, 123456789) + 1, results of 2)
Statistical after all Numbers such as HaoMaSX (12345, 123456789) value is not selected number of all such attribute,

The question now is: define the two-dimensional array Public HaoMaSX (500000, 1200000) As an Integer system out of memory error, I refer to the relevant data is not defined for such a big data, help you a great god warrior, this algorithm or other ideas to solve? Flexible, or how to define such large array? Thank you
  • Related