Algorithm

Drawing by Désirée Jung.