3.9.2 Flow diagram

The following is diagram of the algorithms.