explain the algorithm; better jukugo example