where is this algorithm from?