結果 : deterministic algorithm examples