in reply to Programming Department

You might find these slides from a talk by Michael Schwern interesting.