結果 : explain min max algorithm with example