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


Groups > comp.lang.python > #84048 > unrolled thread

Re: Trees

Started byDan Stromberg <drsalists@gmail.com>
First post2015-01-19 16:49 -0800
Last post2015-01-19 16:49 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Trees Dan Stromberg <drsalists@gmail.com> - 2015-01-19 16:49 -0800

#84048 — Re: Trees

FromDan Stromberg <drsalists@gmail.com>
Date2015-01-19 16:49 -0800
SubjectRe: Trees
Message-ID<mailman.17875.1421715305.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web