为什么从n个数中选出最小值至少需要比较n-1次。

设一个可能最小值集合,每次比较能排除且只能排除一个数字。

排除n-1次得最小值。

猜你喜欢

转载自www.cnblogs.com/luozhonghao/p/9104193.html