Articles tagged Algorithms
- Running Sums in Python. A Python program to generate the running sum of a series.
- Takewhile drops one
- Sugar Pie. Approximating pi by scattering sugar.
- Top Ten Percent. The most efficient way to sort the top 10% of a collection.
- Top Ten Tags. Choosing the right algorithm to select the N largest items from a collection.
- Animated pair streams. Another look at the functional programming problem of generating an infinite sequence of pairs. An example of using the Python Imaging Library to generate an animated GIF.
- The Maximum Subsequence Problem. A stream-based solution to a classic computer science problem.
- Elegance and Efficiency. Must elegant code be efficient? This article investigates.
- Joined Output and the Fencepost Problem. Items and the spaces between them: some notes on the fencepost problem and joining up strings.
- Look and Say Numbers