the friendship algorithm

the friendship algorithm