Title :
Analysis on 2-element insertion sort algorithm
Author_Institution :
Comput. Sci. Dept., Weinan Teachers Univ., Weinan, China
Abstract :
This paper proposes a 2-element insertion sort algorithm, an improved algorithm on the direct insertion sort, gives the algorithm design idea and the description in C. After analyzes comparatively the time complexity and space complexity of the algorithms, the paper summarizes the pros and cons of the 2-element insertion sort algorithm compared with the original one, so as to giving a theoretical basis for the direct insertion sort algorithm optimization, and playing a guiding role in teaching the relevant chapters in “Data Structure” curriculum.
Keywords :
computational complexity; optimisation; sorting; 2-element insertion sort algorithm; C description; direct insertion sort algorithm optimization; space complexity; time complexity; Algorithm design and analysis; Computer science; Data processing; Data structures; Design optimization; Education; Helium; Magnetic heads; Random access memory; Search methods; 2-element insertion sort; direct insertion sort; space complexity; time complexity;
Conference_Titel :
Computer Design and Applications (ICCDA), 2010 International Conference on
Conference_Location :
Qinhuangdao
Print_ISBN :
978-1-4244-7164-5
Electronic_ISBN :
978-1-4244-7164-5
DOI :
10.1109/ICCDA.2010.5541165