Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #84052

Re: Trees

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Trees
Date 2015-01-20 02:46 +0000
References <CAG=hEY1L-39EmuWpdEh_n-BNfs=qG9nL=MrMT0ar72yGBrkoUA@mail.gmail.com> <CAGGBd_pMdYZwt-ksdSpDFNVxXwkekGsJFi=2C66PStTFzS0R+w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.17879.1421721974.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 20/01/2015 00:49, Dan Stromberg wrote:
> On Mon, Jan 19, 2015 at 2:06 PM, Zachary Gilmartin
> <zacharygilmartin@gmail.com> wrote:
>> Why aren't there trees in the python standard library?
>
> Trees are kind of specialized datastructures; no one type of tree
> solves all tree-related problems suitably well.
>
> I think probably the most common need for a tree is implementing a
> cache, but most times you're tempted to sort inside a loop you're
> better off with a tree.
>
> I've put some time into python trees; most of them are on pypi and at:
> http://stromberg.dnsalias.org/~dstromberg/datastructures/
> and:
> http://stromberg.dnsalias.org/~strombrg/python-tree-and-heap-comparison/
>
> HTH
>

I don't know if you've seen this http://kmike.ru/python-data-structures/ 
but maybe of interest.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Trees Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-20 02:46 +0000

csiph-web