Structure of algorithms

Homework