[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A very basic thing I don't get
- From: Leo Razoumov <slonik.az@...>
- Date: Mon, 3 Oct 2011 17:34:35 -0400
On Mon, Oct 3, 2011 at 06:40, David Kastrup <dak@gnu.org> wrote:
> Axel Kittenberger <axkibe@gmail.com> writes:
>
>> Just because not every slot is filled doesn't yet mean that O() isn't
>> 1.Eg a btree will never go below ~50% load.
>
> Radix trees fan out according to the size of the data, not just its
> amount. Unbalanced trees can have less that 50% load.
>
> --
> David Kastrup
>
Also, a balanced trie (prefix tree) with N values stored in leaves has
O(N*log(N)) nodes making it O(log(N)) per value in size.
For a non-balanced trie it could be even worse.
--Leo--
- References:
- A very basic thing I don't get, Thijs Koerselman
- Re: A very basic thing I don't get, Peter Cawley
- Re: A very basic thing I don't get, Stefan Reich
- Re: A very basic thing I don't get, Michal Kottman
- Re: A very basic thing I don't get, Stefan Reich
- Re: A very basic thing I don't get, Philippe Lhoste
- Re: A very basic thing I don't get, steve donovan
- Re: A very basic thing I don't get, Roberto Ierusalimschy
- Re: A very basic thing I don't get, Pascal J. Bourguignon
- Re: A very basic thing I don't get, Dirk Laurie
- Re: A very basic thing I don't get, Axel Kittenberger
- Re: A very basic thing I don't get, Pierpaolo Bernardi
- Re: A very basic thing I don't get, Axel Kittenberger
- Re: A very basic thing I don't get, Pierpaolo Bernardi
- Re: A very basic thing I don't get, Axel Kittenberger
- Re: A very basic thing I don't get, David Kastrup