Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20485
| References | <franck-B0D585.19202115022012@news.free.fr> <CALwzidmOuA7hWxEN+Zoy5oKmf1j7-Lc-xxPrEXmXqdnsx_DnVw@mail.gmail.com> <CAMZYqRQrV2XFQ61==k9Q+K+V2t6HLSQ24CcTbntrrSnocs4NSw@mail.gmail.com> <dv4oj7l21bq2m8q0vrelnbpdoa6l7b63tk@4ax.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2012-02-15 15:54 -0700 |
| Subject | Re: Complexity question on Python 3 lists |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5864.1329346498.27778.python-list@python.org> (permalink) |
On Wed, Feb 15, 2012 at 1:28 PM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote: > On Wed, 15 Feb 2012 11:11:27 -0800, Chris Rebert <clp2@rebertia.com> > wrote: > > >>"The growth pattern is: 0, 4, 8, 16, 25, 35, 46, 58, 72, 88, …" >> -- list_resize() >> > Rather perverse, is it not? The first set is plain doubling, but > then you get a series of increases by: > > ... 9, 10, 11, 12, 14, 16, 16,... > > or > > 100%, 100%, 100%, 56%, 40%, 34%, 30%, 27%, 22%,... > > Big jump form 100% to 56%... Based on the formula in the code, it would seem to asymptotically approach 12.5%.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Complexity question on Python 3 lists Franck Ditter <franck@ditter.org> - 2012-02-15 19:20 +0100 Re: Complexity question on Python 3 lists Chris Rebert <clp2@rebertia.com> - 2012-02-15 10:35 -0800 Re: Complexity question on Python 3 lists Ian Kelly <ian.g.kelly@gmail.com> - 2012-02-15 11:43 -0700 Re: Complexity question on Python 3 lists Dave Angel <d@davea.name> - 2012-02-15 13:45 -0500 Re: Complexity question on Python 3 lists Stefan Behnel <stefan_ml@behnel.de> - 2012-02-15 20:01 +0100 Re: Complexity question on Python 3 lists Chris Rebert <clp2@rebertia.com> - 2012-02-15 11:11 -0800 Re: Complexity question on Python 3 lists Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-02-15 15:28 -0500 Re: Complexity question on Python 3 lists Terry Reedy <tjreedy@udel.edu> - 2012-02-15 16:41 -0500 Re: Complexity question on Python 3 lists Ian Kelly <ian.g.kelly@gmail.com> - 2012-02-15 15:54 -0700 Re: Complexity question on Python 3 lists Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-16 00:41 +0000
csiph-web