Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; 'not?': 0.09; 'received:mail-lpp01m010-f46.google.com': 0.09; '25,': 0.12; '16,': 0.15; '46,': 0.16; '58,': 0.16; 'bieber': 0.16; 'cc:addr:python-list': 0.16; 'subject:question': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'feb': 0.22; 'cc:2**0': 0.26; 'code,': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'seem': 0.29; 'pm,': 0.29; 'pattern': 0.30; 'chris': 0.30; 'received:209.85.215.46': 0.32; 'lee': 0.34; 'jump': 0.34; 'subject:lists': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'plain': 0.39; 'received:209.85.215': 0.39; 'received:209': 0.39; 'series': 0.67; '11,': 0.68; 'dennis': 0.73; '100%': 0.82; '35,': 0.84; 'doubling,': 0.84; 'increases': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=c+OOYwrPdygBKBGv1t4ydC9//FzjWFU4haoss7/EcXw=; b=kYoMMRniSYafiD1Zfel8ZGnpnBqH5/eyT4yXsjAVDHoUTvgVYu/F8tFnJ08zBa7NaB aQIxP7hBi650wy5AmDJORt8tLB4QjU45gq61FZLDkZ1OSRe4cpPqR1Ar5uJ037wFkgCV wCL/QPuqoaX7yDb46IYGXLvlDNdVjXHp/LIt4= MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Wed, 15 Feb 2012 15:54:27 -0700 Subject: Re: Complexity question on Python 3 lists To: Dennis Lee Bieber Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1329346498 news.xs4all.nl 6845 [2001:888:2000:d::a6]:44189 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20485 On Wed, Feb 15, 2012 at 1:28 PM, Dennis Lee Bieber wrote: > On Wed, 15 Feb 2012 11:11:27 -0800, Chris Rebert > wrote: > > >>"The growth pattern is: 0, 4, 8, 16, 25, 35, 46, 58, 72, 88, =85" >> =A0 =A0-- list_resize() >> > =A0 =A0 =A0 =A0Rather perverse, is it not? The first set is plain doublin= g, but > then you get a series of increases by: > > =A0 =A0 =A0 =A0... 9, 10, 11, 12, 14, 16, 16,... > > or > > =A0 =A0 =A0 =A0100%, 100%, 100%, 56%, 40%, 34%, 30%, 27%, 22%,... > > =A0 =A0 =A0 =A0Big jump form 100% to 56%... Based on the formula in the code, it would seem to asymptotically approach 12.5%.