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: 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: <5181ca0e$0$13974$862e30e2@ngroups.net> Date: Thu, 2 May 2013 19:00:09 -0700 Subject: Re: Red Black Tree implementation? From: Dan Stromberg To: Python List 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --14dae94ee3a3f030a404dbc6b543 Content-Type: text/plain; charset=ISO-8859-1 On Wed, May 1, 2013 at 7:06 PM, duncan smith 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 > What license? Thanks! --14dae94ee3a3f030a404dbc6b543 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Wed, May 1, 2013 at 7:06 PM, duncan smith <buzzard@invalid.inval= id> wrote:
I have an implementation that you can try out. It's not based on any ot= her 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 millio= n items to a tree, and it takes about 25% longer to add items at the end co= mpared to those at the beginning. Timing removals uncovered a bug. So if yo= u want the code I'll fix the bug and send it (to your gmail e-mail addr= ess?). Cheers.

Duncan
--
http://mail.python.org/mailman/listinfo/python-list

What license?

Thanks!

--14dae94ee3a3f030a404dbc6b543--