计 划对磁带中的16条数据:{18 43 38 16 4 28 7 99 19 54 42 6 74 17 63 3}进行排
已帮助 人
计 划对磁带中的16条数据:{18, 43, 38, 16, 4, 28, 7, 99, 19, 54, 42, 6, 74, 17, 63, 3}进行排序。若排序过程中使用大小为3的堆,则对上述数据采用置换选择算法,所得最长的顺串为 ___________________________。(数字之间用空格分隔) Plan to sort these 16 pieces of data: {18, 43, 38, 16, 4, 28, 7, 99, 19, 54, 42, 6, 74, 17, 63, 3}. If we use a heap, whose size is 3, to sort the data, and the algorithm is "replacement selection", then the longest run will be _______________ (separate the number by a space)

回答
共1条回复-
D
