Articles tagged Streams

  1. Group When
  2. Run-length encoding in Python
  3. DEFLATE: run-length encoding, but better. An investigation into the extended run-length encoder at the heart of the Zlib compression library.
  4. Copy, load, redirect and tee using C++ streambufs. The C++ iostream library separates formatting from lower level read/write operations. This article shows how to use C++ stream buffers to copy, load, redirect and tee streams.
  5. Patience sort and the Longest increasing subsequence. How a simple card game provides an efficient algorithm for finding the longest increasing subsequence of a given sequence.
  6. Removing duplicates using itertools.groupby. An interpreted Python session showing itertools in action.
  7. Merging sorted streams in Python. Did you know that Python's for loops can have an else clause? Here's how it can be used in a stream-merging function.
  8. Running Sums in Python. A Python program to generate the running sum of a series.
  9. Takewhile drops one
  10. Sugar Pie. Approximating pi by scattering sugar.
  11. 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.
  12. The Maximum Sum contiguous subsequence problem. A stream-based solution to a classic computer science problem.
  13. Zippy triples served with Python. How do you generate previous, this, next, triples from a collection. A stream-based solution in Python.
  14. He Sells Shell Scripts to Intersect Sets. The Unix command shell contains a lot of what I like in a programming environment: it’s dynamic, high-level, interpreted, flexible, succinct. This article shows the Unix tools in action.