結果 : two types of algorithm