多做题,通过考试没问题!

数据结构

睦霖题库>大学试题(计算机科学)>数据结构

有一关键字序列(265,301,751,129,937,863,742,694,076,438),写出希尔排序的每趟排序结果。(取增量为5,3,1)

正确答案: 初始:265,301,751,129,937,863,742,694,076,438
d=5:265,301,694,076,438,863,742,751,129,937
d=3:076,301,129,265,438,694,742,751,863,937
d=1:076,129,265,301,438,694,742,751,863,937
答案解析:
进入题库查看解析

微信扫一扫手机做题