User loginNavigation |
The Genuine Sieve of Eratosthenes
Melissa E. O’Neill, The Genuine Sieve of Eratosthenes.
A much beloved and widely used example showing the elegance and simplicity of lazy functional programming represents itself as "The Sieve of Eratosthenes." This paper shows that this example is not the sieve and presents an implementation that actually is.
Starting with the classic one-liner She notes that "Some readers may feel that despite all of these concerns, the earlier algorithm is somehow “morally†the Sieve of Eratosthenes. I would argue, however, that they are confusing a mathematical abstraction drawn from the Sieve of Eratosthenes with the actual algorithm. The algorithmic details, such as how you remove all the multiples of 17, matter." A fun read. |
Browse archives
Active forum topics |
Recent comments
13 weeks 6 days ago
13 weeks 6 days ago
13 weeks 6 days ago
36 weeks 21 hours ago
40 weeks 2 days ago
42 weeks 20 min ago
42 weeks 25 min ago
44 weeks 4 days ago
49 weeks 2 days ago
49 weeks 2 days ago