阅读背景:

Python中的“真正的埃拉托色尼的筛子”——为什么heapq比dict?

来源:互联网 

Following M. O'Neill's great paper, I tried implementing some lazy, infinite versions of the Sieve of Eratosthenes in Python. I was surprised to find that the heap-based version, that the paper claims should run faster, was actually over two times slower for me., I tried imp




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: