Code from Algorithms and Complexity