Help me with this algorithm

Printable View