-->
当前位置:首页 > 题库 > 正文内容

判断题:Suppose we are now sorting an initial array (8, 3, 9, 11, 2, 1,

Luz4年前 (2022-01-18)题库959
Suppose we are now sorting an initial array (8, 3, 9, 11, 2, 1, 4, 7, 5, 10, 6)using Shellsort. If the sorting result after the first run is (1, 3, 7, 5, 2, 6, 4, 9, 11, 10, 8) and that after the second run is (1, 2, 6, 4, 3, 7, 5, 8, 11, 10, 9), then the increments used for the two sortings are 5 and 3.

答案:TRUE

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。