Articles tagged Algorithms

  1. Running Sums in Python. A Python program to generate the running sum of a series.
  2. Takewhile drops one
  3. Sugar Pie. Approximating pi by scattering sugar.
  4. Top Ten Percent. The most efficient way to sort the top 10% of a collection.
  5. Top Ten Tags. Choosing the right algorithm to select the N largest items from a collection.
  6. 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.
  7. The Maximum Subsequence Problem. A stream-based solution to a classic computer science problem.
  8. Elegance and Efficiency. Must elegant code be efficient? This article investigates.
  9. Joined Output and the Fencepost Problem. Items and the spaces between them: some notes on the fencepost problem and joining up strings.
  10. Look and Say Numbers