結果 : what is algorithm with example