[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A very basic thing I don't get
- From: Pierpaolo Bernardi <olopierpa@...>
- Date: Mon, 3 Oct 2011 12:13:54 +0200
On Mon, Oct 3, 2011 at 12:02, Axel Kittenberger <axkibe@gmail.com> wrote:
>> So, say, you never heard of trees, which btw are ridiculous data
>> structures. 8^)
>
> They have O(1) per item for space, a tree which load would reduce even by
> O(log(n)) would be ridiculous.
You are right that some tree representation are O(1) per item.
Others, perfectly sensible representations, are not.
E.g. representations in which not every node contains an item,
an example of which is the representation of sexpr as usually
implemented in lisp-like languages.
Other examples are common in functional programming, where
the overhead in space is compensated by other nice properties.
P.
- 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