已知序列{17,18,60,20,70,32,73,65,25},请给出采用气泡排序法对该序列作升序排列时的每一趟的结
问题描述:
已知序列{17,18,60,20,70,32,73,65,25},请给出采用气泡排序法对该序列作升序排列时的每一趟的结
答
17,18,20,60,32,70,65,25,73
17,18,20,32,60,65,25,70,73
17,18,20,32,60,25,65,70,73
17,18,20,32,25,60,65,70,73
17,18,20,25,32,60,65,70,73
答
1.17,18,20,60,32,70,65,25,73
2.17,18,20,32,60,65,25,70,73
3.17,18,20,32,60,25,65,70,73
4.17,18,20,32,25,60,65,70,73
5.17,18,20,25,32,60,65,70,73
6.17,18,20,25,32,60,65,70,73