Algorithms are presented in a unified style as templates, with different levels of detail suitable for readers ranging from beginning students to experts.