結果 : what is an algorithm give two examples