Title :
Analysis on Bubble Sort Algorithm Optimization
Author_Institution :
Comput. Sci. Dept., Weinan Teachers Univ., Weinan, China
Abstract :
Based on the analysis of the traditional bubble sort algorithm, this paper proposes two bidirectional bubble sort algorithm design ideas. After giving C language description of the three algorithms, the paper tests the new algorithms, analyzes comparatively the time complexity and space complexity of the three algorithms, and summarizes such a conclusion that the first new algorithm has the same average time complexity and space complexity as the original algorithm, while the second is time efficient than the original one, and thus truly reaches the optimization purpose.
Keywords :
C language; computational complexity; optimisation; sorting; C language description; bidirectional bubble sort algorithm; bubble sort algorithm optimization; space complexity; time complexity; Algorithm design and analysis; Complexity theory; Data structures; Magnetic heads; Memory management; Optimization; Presses; bidirectional bubble sort; bubble sort; space complexity; time complexity;
Conference_Titel :
Information Technology and Applications (IFITA), 2010 International Forum on
Conference_Location :
Kunming
Print_ISBN :
978-1-4244-7621-3
Electronic_ISBN :
978-1-4244-7622-0
DOI :
10.1109/IFITA.2010.9