写出用冒泡排序将关键字序列{54,23,89,48,64,50,25}排序过程的第一趟结果
1个回答
关注
展开全部
咨询记录 · 回答于2023-01-03
写出用冒泡排序将关键字序列{54,23,89,48,64,50,25}排序过程的第一趟结果
亲~亲您好写出用冒泡排序将关键字序列{54,23,89,48,64,50,25}排序过程的第一趟结果如下:初始:54,23,89,48,64,50,25,90,34 1:(23,54),89,48,64,50,25,90,34 2:(23,54,89),48,64,50,25,90,34 3:(23,48,54,89),64,50,25,90,34 4:(23,48,54,64,89),50,25,90,34 5:(23,48,50,54,64,89),25,90,34 6:(23,25,48,50,54,64,89),90,34 7:(23,25,48,50,54,64,89,90),34 8:(23,25,48,50,54,64,89,90,34)