How many is "too many" with lists?
Matthew Hirsch
meh9 at cornell.edu
Tue May 2 11:55:18 EDT 2000
I'm building a list of lists each holding a combination of nCk where n
is the total number of numbers and k is the number you are choosing.
For example, I have 27 numbers, 0-26. Looking at all combinations of 6
taken from this sample produces 27!/(27-6)!6! =296010 different
combinations stored in the original list.
Matt
In article
<Pine.LNX.4.10.10005020824370.13821-100000 at propylaea.anduin.com>,
Daniel Berlin <dan at cgsoftware.com> wrote:
> Yes. Try avoiding the numbers 7, 11, 58, and 93.
> I hate 93. Especially after what it did to my sister.
> But seriously. What are you doing with the lists that is slow?
>
>
> On Tue, 2 May 2000, Matthew Hirsch wrote:
>
> > Hi all,
> >
> > Is there a rough number of elements in a list that python or a computer
> > has trouble dealing with? I'm using a P233 with 64MB RAM. I have
> > ~25000 elements in a list, and things seem to be slowing down. Is
> > there
> > some number that I should try avoiding?
> >
> > Thanks,
> > Matt
> > --
> > http://www.python.org/mailman/listinfo/python-list
> >
>
>
More information about the Python-list
mailing list