试题详情
简答题设待排序序列为{10,18,4,3,6,12,1,9,15,8}请写出希尔排序每一趟的结果。增量序列为5,3,2,1。
  • 初始:10,18,4,3,6,12,1,9,15,8
    d=5:10,1,4,3,6,12,18,9,15,8
    d=3:3,1,4,8,6,12,10,9,15,18
    d=2:3,1,4,8,6,9,10,12,15,18
    d=1:1,3,4,6,8,9,10,12,15,18
  • 关注下方微信公众号,在线模考后查看

热门试题