Re: Teaching new tricks to an old dog (C++ -->Ada)
From: Ioannis Vranos (ivr_at_remove.this.grad.com)
Date: 03/23/05
- Next message: Pascal Obry: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Previous message: Ioannis Vranos: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- In reply to: Georg Bauhaus: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Next in thread: Vinzent 'Gadget' Hoefler: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Reply: Vinzent 'Gadget' Hoefler: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Reply: Georg Bauhaus: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 23 Mar 2005 11:02:16 +0200
Georg Bauhaus wrote:
>> I forgot to say here that the cost of map's operator[] is O(log(n))
>> which is fairly cheap for large amount of data.
>
>
> compare O(log(n)) to O(1) where n is 1, 1000, 1_000_000.
> Make this access a part of an inner loop.
If you do the maths, you will see that log(10^6) isn't that large.
-- Ioannis Vranos http://www23.brinkster.com/noicys
- Next message: Pascal Obry: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Previous message: Ioannis Vranos: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- In reply to: Georg Bauhaus: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Next in thread: Vinzent 'Gadget' Hoefler: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Reply: Vinzent 'Gadget' Hoefler: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Reply: Georg Bauhaus: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|