how to handle very large array?
MichaelBi
shunjie.bi at gmail.com
Mon Feb 14 13:20:45 UTC 2022
On Saturday, 12 February 2022 at 20:31:29 UTC, H. S. Teoh wrote:
> On Sat, Feb 12, 2022 at 06:41:14PM +0000, Era Scarecrow via
> Digitalmars-d-learn wrote:
>> [...]
> [...]
>
> That was not my point. My point was to question whether the OP
> has discovered the insight that would allow him to accomplish
> his task with a LOT less space than the naïve approach of
> storing everything in a gigantic array. Substituting an AA for
> a gigantic array matters little as long as the basic approach
> remains the same -- you have only modified the implementation
> details but the algorithm is still a (highly) suboptimal one.
>
>
> --T
thanks, you are all correct. i just change the algorithm and use
the AA, previously using the naïve method...:), now solved
perfectly. thanks again.
More information about the Digitalmars-d-learn
mailing list