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


Groups > comp.lang.python > #44651

Re: Red Black Tree implementation?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <drsalists@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.088
X-Spam-Evidence '*H*': 0.82; '*S*': 0.00; 'bug.': 0.09; 'python': 0.11; 'bug': 0.12; '25%': 0.16; 'add,': 0.16; 'to:name:python list': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'looks': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'compared': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'subject:skip:i 10': 0.31; 'thanks!': 0.32; 'run': 0.32; 'url:python': 0.33; 'bugs': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'url:listinfo': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'gmail': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; "you're": 0.61; 'more': 0.64; 'smith': 0.68; 'million': 0.74; 'removals': 0.84; 'subject:Red': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=s336OWE6CfTcihcYqX/s7mpnz5IB1LTCMCUV/mjsI74=; b=AHYGuled3Y7QVPFzL8+ROHayp8bOvH9RT39oalNHBWST/jpwTjTiGh5tNphLNqahID 7ynrdMtmFSKp/+txLAe0Myc0gLXwhEPzEmJOy0DSwzathRYYdpP1LV+yM/adx3g2PBsX egFeY7hL/EbcROLFuPxcGY1sYvK5egdALmfrWm/RM8PEblc1pXgrqjr/G+Ns9lo8DDBq vEVqdCVwyUfs+VB0s+vAfHd+GIh3mBvzXhafmvTREcqftUHif6kkF5kZJGkFqsYCnUTy nJp62SU4VZH8hKU1bgb2bEb7wArmXHwxASE/CkTxCGfhJawHToO8wSEHtbQn0+qPUW2N YahQ==
MIME-Version 1.0
X-Received by 10.229.94.70 with SMTP id y6mr1483693qcm.46.1367546409265; Thu, 02 May 2013 19:00:09 -0700 (PDT)
In-Reply-To <5181ca0e$0$13974$862e30e2@ngroups.net>
References <mailman.1225.1367449881.3114.python-list@python.org> <5181ca0e$0$13974$862e30e2@ngroups.net>
Date Thu, 2 May 2013 19:00:09 -0700
Subject Re: Red Black Tree implementation?
From Dan Stromberg <drsalists@gmail.com>
To Python List <python-list@python.org>
Content-Type multipart/alternative; boundary=14dae94ee3a3f030a404dbc6b543
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1260.1367546417.3114.python-list@python.org> (permalink)
Lines 51
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1367546417 news.xs4all.nl 15977 [2001:888:2000:d::a6]:55646
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44651

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, May 1, 2013 at 7:06 PM, duncan smith <buzzard@invalid.invalid>wrote:

> I have an implementation that you can try out. It's not based on any other
> implementation, so my bugs will be independent of any bugs in the code
> you're currently using. It looks more like a set - add, remove, discard.
> Not tried on Python 3 or run through pylint. I just tried adding a million
> items to a tree, and it takes about 25% longer to add items at the end
> compared to those at the beginning. Timing removals uncovered a bug. So if
> you want the code I'll fix the bug and send it (to your gmail e-mail
> address?). Cheers.
>
> Duncan
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>

What license?

Thanks!

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


Thread

Red Black Tree implementation? Dan Stromberg <drsalists@gmail.com> - 2013-05-01 16:11 -0700
  Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-02 03:06 +0100
    Re: Red Black Tree implementation? Dan Stromberg <drsalists@gmail.com> - 2013-05-02 19:00 -0700
      Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-07 01:55 +0100
        Re: Red Black Tree implementation? Chris Angelico <rosuav@gmail.com> - 2013-05-07 11:21 +1000
        Re: Red Black Tree implementation? Dan Stromberg <drsalists@gmail.com> - 2013-05-06 18:20 -0700
          Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-07 14:28 +0100
          Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-09 00:21 +0100
            Re: Red Black Tree implementation? Dan Stromberg <drsalists@gmail.com> - 2013-05-08 18:40 -0700
              Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-09 05:31 +0100
              Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-09 14:52 +0100
                Re: Red Black Tree implementation? Dan Stromberg <drsalists@gmail.com> - 2013-05-11 16:24 -0700
                Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-12 02:34 +0100
                Re: Red Black Tree implementation? Dan Stromberg <drsalists@gmail.com> - 2013-05-11 18:29 -0700
                Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-12 03:02 +0100
                Re: Red Black Tree implementation? duncan smith <buzzard@invalid.invalid> - 2013-05-12 19:15 +0100

csiph-web