public class BubbleSort { /** * 冒泡排序法 */ public static void main(String[] args) { int[] values ={ 3,1,6,2,9,0,7,4,5 }; sort(values); for(int i=0; i < values.length; ++i){ System.out.println("Index: " + i + " Value: " + values[i]);
除上述方法外,还有学者提出了其它一些方法和求解策略,如冒泡法(Bubble method)【9】,遗传基因算法(Geneticalgorithm)【191,人工神经网络算法(Neural networks algorithm)1201,Wolff法则仿生法【21】等...
基于8个网页-相关网页
旧的竞赛软件使用冒泡法进行排名。
Old contest software USES bubble sort for generating final standings.
常用的有选择法、冒泡法。
介绍了两种较为成熟的排序方法冒泡法和选择排序法,指出这两种排序方法都可在原来基础上实现双向排序。
This paper introduces two mature sorting methods: bubble sort and selection sort, and points out that these sorting methods could be used to realize the two-direction sort.
应用推荐