采用初始增量为4的希尔排序法对没有关键码序列{15,10,4,26,14,2,13,19,17,5,9, 23},按照关键码值递增的次序排序,一趟扫描后的结果为
A.{14,2,4,19,15,5,9,23,17,10,13,26}
B.{2,9,4,26,14,15,13,19,17,5,9,23}
C.{10,4,15,14,2,13,19,16,5,9,23,26}
D.{10,15,4,2,14,13,19,16,5,9,23,26}
第1题:
设有关键码序列(O, G, M, Z, A, N, B, P, X, H, Y, S, T, L, K, E),要按关键码值递增的顺序进行排序,采用堆排序法进行,经过初始建堆后关键码值A在序列中的序号是______。
第2题:
采用初始增量为4的希尔排序法对没有关键码序列{15,10,4,26,14,2,13,19,17,5,9,23},按照关键码值递增的次序排序,一趟扫描后的结果为
A.{14,2,4,19,15,5,9,23,17,10,13,26}
B.{2,9,4,26,14,15,13,19,17,5,9,23}
C.{10,4,15,14,2,13,19,16,5,9,23,26}
D.{10,15,4,2,14, 13,19,16,5,9,23,26}
第3题:
设有关键码序列(7,32,16,49,57,6,21,95,78,20,4,62),要按关键码值递增的次序排序,采用初始增量为4的希尔排序法,一趟扫描后的结果为( )。
A)(7,6,4,49,57,20,16,62,78,32,21,95)
B)(4,6,49,20,57,78,62,21,7,95,32,16)
C)(4,6,7,16,32,20,57,62,78,95,49,21)
D)(4,6,49,95,78,62,7,20,21,32,57,16)
第4题:
采用初始增量为4的希尔排序法对没有关键码序列{15,10,4,26,14,2,13,19,17,5, 9,23},按照关键码值递增的次序排序,一趟扫描后的结果为
A.{14,2,4,19,15,5,9,23,17,10,13,26}
B.{2,9,4,26,14,15,13,19,17,5,9,23}
C.{10,4,15,14,2,13,19,16,5,9,23,26}
D.{10,15,4,2,14,13,19,16,5,9,23,26}
第5题:
设有关键码序列(17,8,3,25,16,1,13,19,18,4,6,21),要按关键码值递增的次序排序,用初始增量为4的希尔排序法,一趟扫描后的结果是【 】。