[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A very basic thing I don't get
- From: David Kastrup <dak@...>
- Date: Mon, 03 Oct 2011 12:53:04 +0200
Pierpaolo Bernardi <olopierpa@gmail.com> writes:
> On Mon, Oct 3, 2011 at 12:30, Axel Kittenberger <axkibe@gmail.com> wrote:
>> 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.
>
> So btrees are O(1). Other structures are not.
>
> Trees where information is kept only at the terminal leaves are a fairly
> common components of many data structures. These are not O(1).
If they have a minimum fanout f>1 (like trees where nodes with one or no
child are collapsed), they are. It is often possible to make it so, but
by no means mandatory.
--
David Kastrup
- 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, Pierpaolo Bernardi