Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'cpython': 0.05; 'tree': 0.05; 'pypi': 0.07; 'dan': 0.09; 'lawrence': 0.09; 'library?': 0.09; 'trees': 0.09; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'mostly': 0.14; '>>': 0.16; 'attempted': 0.16; 'cc:name:python list': 0.16; 'tempted': 0.16; 'wrote:': 0.18; 'implementing': 0.19; '>>>': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; '>>>': 0.24; "aren't": 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; "i've": 0.25; '>': 0.26; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'went': 0.31; 'page.': 0.31; 'too.': 0.31; 'probably': 0.32; 'url:python': 0.33; 'at:': 0.34; 'maybe': 0.34; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; "didn't": 0.36; 'url:org': 0.36; 'problems': 0.38; 'focused': 0.38; 'version,': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'most': 0.60; "you're": 0.61; 'times': 0.62; "you've": 0.63; 'kind': 0.63; 'specialized': 0.65; '\xc2\xa0\xc2\xa0': 0.74; 'interest.': 0.81; '2015': 0.84; 'joel': 0.91; 'to:none': 0.92; 'url:ru': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=1uXwv5ex5V6wXSzlgZLekAumQDQInqetJJo9Xo0R5Ss=; b=jwO18BLm9B/8pE82PDTNaeMep8+W1n93OkcqXWy/KEdONqH6TFUam6BblMR4hUtVG+ PbldbJBORZGMbAGZv4X22LSR9Gan8z791etHDB+XznHliNVd0sZCHPw6Rtnc4jOSTZ4+ ny9ebj5HgVDmmXFdSc9cYt1UkmWcHFETutJ2nZS/Sp1CJVxYSgqCBWbQgPIUHxIdHkQT bSNKjbY8oF+tDdrlXiEBrlLJ1+sMsjiopxTq2lfwQ9LQKugGiJm8s9k0QErm3bQ9DM4V 2eTqrxq2/wBzsIGgUTsHiULa9KpiDoTvfG0LZgKGTfWO94inn/saJHF/Oh84lqefFi7o 6EMQ== MIME-Version: 1.0 X-Received: by 10.140.109.55 with SMTP id k52mr21090864qgf.99.1421729369961; Mon, 19 Jan 2015 20:49:29 -0800 (PST) In-Reply-To: References: Date: Mon, 19 Jan 2015 23:49:29 -0500 Subject: Re: Trees From: Joel Goldstick Cc: Python List Content-Type: multipart/alternative; boundary=001a1139c164103ae0050d0e2acb X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 127 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421729373 news.xs4all.nl 2878 [2001:888:2000:d::a6]:41896 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84058 --001a1139c164103ae0050d0e2acb Content-Type: text/plain; charset=UTF-8 On Mon, Jan 19, 2015 at 11:21 PM, Dan Stromberg wrote: > On Mon, Jan 19, 2015 at 6:46 PM, Mark Lawrence > wrote: > > On 20/01/2015 00:49, Dan Stromberg wrote: > >> > apropos of nothing, I went to stonybrook too. beee 1978 > >> On Mon, Jan 19, 2015 at 2:06 PM, Zachary Gilmartin > >> 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. > > I've seen it. It's a nice page. > > I attempted to get my treap port in there since it has a Cython > version, but it didn't seem to take. > > I've mostly focused on pure python that runs on CPython 2.x, CPython > 3.x, Pypy, Pypy3 and Jython. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com --001a1139c164103ae0050d0e2acb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mon, Jan 19, 2015 at 11:21 PM, Dan Stromberg <<= a href=3D"mailto:drsalists@gmail.com" target=3D"_blank">drsalists@gmail.com= > wrote:
O= n Mon, Jan 19, 2015 at 6:46 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 20/01/2015 00:49, Dan Stromberg wrote:
>>

apropos of nothing, I w= ent to stonybrook too. beee 1978

=C2=A0=C2=A0
>> 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<= br> >> 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/datastructu= res/
>> and:
>> http://stromberg.dnsalias.org/~strombr= g/python-tree-and-heap-comparison/
>>
>> HTH
>>
>
> I don't know if you've seen this http://kmike.ru/python-data-struct= ures/ but
> maybe of interest.

I've seen it. It's a nice page.

I attempted to get my treap port in there since it has a Cython
version, but it didn't seem to take.

I've mostly focused on pure python that runs on CPython 2.x, CPython 3.x, Pypy, Pypy3 and Jython.
--
https://mail.python.org/mailman/listinfo/python-list



--
--001a1139c164103ae0050d0e2acb--