Tag Archives: enumeration

Adventures in enumerating balanced brackets

Since I’ve been coaching my school’s ACM ICPC programming team, I’ve been spending a bit of time solving programming contest problems, partly to stay sharp and be able to coach them better, but also just for fun. I recently solved … Continue reading

Posted in combinatorics, haskell | Tagged , , , | 2 Comments

Higher-dimensional enumeration

The other day in the #haskell IRC channel, some of us were playing around with generalizing Haskell list enumeration syntax: Prelude> [1..5] [1,2,3,4,5] First, we defined the (…) operator to perform enumeration, so it can be partially applied. (Unfortunately, we … Continue reading

Posted in combinatorics, haskell | Tagged , , , , , | 6 Comments