文件名称:ImprovedEbulliton
介绍说明--下载内容均来自于网络,请自行研究使用
冒泡法改进:
1.若某次循环中没有数据交换过,则可认为数据已经有序了,不必再进行循环了,可在程序中设一变量Flag 用来标识有无数据交换
2.如果在一次循环中,最后的某些元素没有交换过,则说明后面这些元
素的顺序已排序,下次循环可不对其进行比较-Bubble Act to improve: 1. If there is no cycles in a data exchange, and may think the data has been orderly, and no longer need to carry out the cycle, and can be set up in the procedure used to identify one variable Flag whether the data exchange 2. If in a cycle, the final exchange of certain elements do not, then the back of the order of these elements have been sorted, the next cycle may be compared
1.若某次循环中没有数据交换过,则可认为数据已经有序了,不必再进行循环了,可在程序中设一变量Flag 用来标识有无数据交换
2.如果在一次循环中,最后的某些元素没有交换过,则说明后面这些元
素的顺序已排序,下次循环可不对其进行比较-Bubble Act to improve: 1. If there is no cycles in a data exchange, and may think the data has been orderly, and no longer need to carry out the cycle, and can be set up in the procedure used to identify one variable Flag whether the data exchange 2. If in a cycle, the final exchange of certain elements do not, then the back of the order of these elements have been sorted, the next cycle may be compared
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ImprovedEbulliton.c