Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1a.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.071 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'pop': 0.05; 'worse': 0.09; 'cc:addr:python-list': 0.11; 'comp': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hashes': 0.16; 'worst': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'tim': 0.29; 'involving': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'chase': 0.31; 'music.': 0.31; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'different': 0.65; 'mar': 0.68; 'url:v': 0.71; 'url:youtube': 0.71; 'records': 0.73; 'million': 0.74; 'url:watch': 0.77; 'imagine,': 0.84; 'songs': 0.91; 'to:none': 0.92 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=+XN2awcL36dheq7KWeNtg52MdrdvxcgD0l7ikugrrXI=; b=VZLjA27zgNu2hxuypVe80/RL99qDtZtOWSbIYsy2S3vPjkNzPruyhj/vm8k2rxAnNS wn+G/6E88brZbUNVG9/94fC3zFj4Fk7TGK+1eHIDiZZTf4YW3oVezKk5SF6Y2ece3uF5 tgCH8gba07Zvz+c3Yzgc4BeCp9nxgH7gZzO8ZdouL8PY3i+Ltp40vdXHysWj0Ol/E0u+ U2v3WNThvu5Oqbm+aPrP3iArn2LnXCW/A8S0JAqGJ+hjM96dkxLM/CoMbIo2oUXg0VOD g8EVuyftevIZL/ALDl7aF4dihHvZspM5NDZ6GHdT6oy8OMQPbmBA0AxsLSkACzvfI6zJ 0ntw== MIME-Version: 1.0 X-Received: by 10.68.200.74 with SMTP id jq10mr3779536pbc.169.1394469558880; Mon, 10 Mar 2014 09:39:18 -0700 (PDT) In-Reply-To: <20140310113351.5e972f6b@bigbox.christie.dr> References: <87eh2d3x8h.fsf_-_@elektro.pacujo.net> <87eh2ctmht.fsf@elektro.pacujo.net> <87zjkz3eo3.fsf@elektro.pacujo.net> <87a9czrrax.fsf@elektro.pacujo.net> <531d3058$0$29994$c3e8da3$5496439d@news.astraweb.com> <87eh2atw6s.fsf@elektro.pacujo.net> <20140310113351.5e972f6b@bigbox.christie.dr> Date: Tue, 11 Mar 2014 03:39:18 +1100 Subject: Re: Balanced trees From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394469568 news.xs4all.nl 2848 [2001:888:2000:d::a6]:50552 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68161 On Tue, Mar 11, 2014 at 3:33 AM, Tim Chase wrote: > On 2014-03-11 03:24, Chris Angelico wrote: >> Imagine, worst case, all one million records have the same >> song/user/add_time and you need to do twenty comparisons involving >> four fields. That's gotta be worse than one hashing of five fields. > > And if you have one million songs that are indistinguishable, you > have Pop Top-40 playlists. And that is *definitely* worse than > hashes OR trees. :-) LOL! That's not a Comp Sci problem, I'm afraid. But there is a solution: https://www.youtube.com/watch?v=jCZzvZEmq_A https://www.youtube.com/watch?v=DEr_5C6JYB4 A different sort of music. ChrisA