检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:施祖平[1]
出 处:《通化师范学院学报》2010年第12期95-96,共2页Journal of Tonghua Normal University
摘 要:冒泡法的基本思想是通过比较在待排数组中相邻元素的值来进行,在每一趟比较过程中使较大的元素向下"沉"而较小的元素向上"浮",从而完成排序的目的.为提高排序效率,可以分别从两头交替扫描进行冒泡排序,即采用"两头冒泡法"对其改进.The basic idea of bubble sort algorithm is through the comparison with the value of adjacent elements of unsorted array,and during every trip of the sorting the bigger value of element is"sink"and the smaller value of element is"floating",through this kind of method achieving the purpose of element sort.To improve the efficiency of sorting,during bubble sort every trip can scan alternately from the two side of the array,that is"bubble sort in two directions"for improve original algorithm.
分 类 号:TP31[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.117