问题详情

已知序列(17,18,60,40,7,32,73,65,85)请给出采用冒泡排序法对该序列作升序排列时的每一趟结果。


时间:2022-03-06 12:37 关键词: 国家开放大学(数据结构)

答案解析

<p> 原始序列:256,301,751,129,937,863,742,694,076,438<br> 第1趟:256,301,129,751,863,742,694,076,438,937<br> 第2趟:256,129,301,751,742,694,076,438,863,937<br> 第3趟:129,256,301,742,694,076,438,751,863,937<br> 第4趟:129,256,301,694,076,438,742,751,863,937<br> 第5趟:129,256,301,076,438,694,742,751,863,937<br> 第6趟:129,256,076,301,438,694,742,751,863,937<br> 第7趟:129,076,256,301,438,694,742,751,863,937<br> 第8趟:076,129,256,301,438,694,742,751,863,937<br> 第9趟:076,129,256,301,438,694,742,751,863,937</p>