Powersets of a list?
Corran Webster
cwebster at nevada.edu
Sun May 27 18:01:45 EDT 2001
In article <3b1148b5.183134130 at news.okstate.edu>, David C.
Url^H^Hllrich <ullrich at math.okstate.edu> wrote:
[snip]
> [timings of various power sets snipped]
>
> Thanks (I _hate_ to install new software, even
> new versions of Python - now I can put off 2.x
> a little longer...)
>
> Two questions: Why did you omit the bitshifting ones
> from the range(18) test,
Impatience, basically. For MacPython, the numbers are:
range(18):
bitshifting1 233.366666667
bitshifting2 263.916666667
and were significantly higher when run from within the IDE. I killed
the program when I was first testing it after about 3 minutes, since I
expected it to take at most a minute.
The values for Unix Python on OS X were much more reasonable:
range(18):
bitshifting1 39.32
bitshifting2 70.92
I'm not sure why it took so long in MacPython. I wonder if there's
something weird with bitwise operations in MacPython?
> and who's this David Urlich
> guy? His code looks vaguely familiar but I can't place
> the name.
Urg. My abject apologies!
Corran
More information about the Python-list
mailing list