結果 : a * algorithm with suitable example