結果 : how to calculate algorithm complexity