Re: How to use associative arrays in Ada 2005?
- From: "Alex R. Mosteo" <devnull@xxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 09:29:04 +0100
Matthew Heaney wrote:
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...
I don't think this is completely fair. Yes, hashes are said to be O(1) but
also they always carry the warning that this is not absolute. I'd feel
dishonest if presenting an algorithm saying it's O(1) if it uses hash maps.
I'd probably prefer to use trees and give O(log n) as a real upper bound.
.
- Follow-Ups:
- Re: How to use associative arrays in Ada 2005?
- From: Matthew Heaney
- Re: How to use associative arrays in Ada 2005?
- References:
- How to use associative arrays in Ada 2005?
- From: snoopysalive
- Re: How to use associative arrays in Ada 2005?
- From: Matthew Heaney
- Re: How to use associative arrays in Ada 2005?
- From: snoopysalive
- Re: How to use associative arrays in Ada 2005?
- From: snoopysalive
- Re: How to use associative arrays in Ada 2005?
- From: Dmitry A. Kazakov
- Re: How to use associative arrays in Ada 2005?
- From: Matthew Heaney
- Re: How to use associative arrays in Ada 2005?
- From: snoopysalive
- Re: How to use associative arrays in Ada 2005?
- From: Dmitry A. Kazakov
- Re: How to use associative arrays in Ada 2005?
- From: Matthew Heaney
- Re: How to use associative arrays in Ada 2005?
- From: Dmitry A. Kazakov
- Re: How to use associative arrays in Ada 2005?
- From: Matthew Heaney
- How to use associative arrays in Ada 2005?
- Prev by Date: Re: Multitasking and containers
- Next by Date: Re: How to use associative arrays in Ada 2005?
- Previous by thread: Re: How to use associative arrays in Ada 2005?
- Next by thread: Re: How to use associative arrays in Ada 2005?
- Index(es):
Relevant Pages
|