Re: How to use associative arrays in Ada 2005?



Dmitry A. Kazakov wrote:

... asymptotically under certain conditions, which might be or not met in a
real case.

Now you're just moving the goalposts. Again.

The only issue at hand is whether the standard container library can solve the OP's problem. The answer is emphatically yes.

Tangential discussions of relative efficiency of maps compared to arrays are little more than a Chewbacca Defense...


3. You don't mention memory, for a good reason. Hashes are known space
eaters. And you have n**2 of them!

Yes, Dimitry. And cars consume more gasoline than bicycles...


This might be obvious for Ada programmers, but people coming with
the background in other languages tend to think in terms of implementation.

The Ada 2005 standard container library is not substantively different from the C++ standard container library.
.



Relevant Pages