若对序列(49,38,65,97,76,13,27,50)采用选择排序法排序,写出各趟结束后序列.
问题描述:
若对序列(49,38,65,97,76,13,27,50)采用选择排序法排序,写出各趟结束后序列.
答
13,38,65,97,76,49,27,50
13,27,65,97,76,49,38,50
13,27,38,97,76,49,65,50
13,27,38,49,76,97,65,50
13,27,38,49,50,97,65,76
13,27,38,49,50,65,97,76
13,27,38,49,50,65,76,97
看看参考资料网址里的例子.