节点文献
冒泡排序算法在静态链表上的实现
Realization of bubble sort algorithm on static linked list
【摘要】 利用静态链表的原理,冒泡排序算法在静态链表上实现时只改变结点的游标,排好序后再利用order优先搜索算法将每个记录移动到相应位置。实验及分析结果表明,记录移动的时间复杂度由O(n2)下降到O(n),当单个记录需要较大的存储空间时,效率较高。
【Abstract】 Making use of the principle of static linked list,the realization of bubble sort algorithm on static linked list only changes the cursor of nodes. After sorting,order first search is used to move every record to the corresponding position. Experimental results showed that the time complexity of record moving descends from O( n2) to O( n) and it has higher efficiency when a single record need larger storage space.
【关键词】 冒泡排序;
静态链表;
状态迁移;
order优先搜索;
【Key words】 bubble sort algorithm; static linked list; state transition; order first search;
【Key words】 bubble sort algorithm; static linked list; state transition; order first search;
【基金】 安徽省教育厅自然科学研究项目(KJ2011B084)资助
- 【文献出处】 阜阳师范学院学报(自然科学版) ,Journal of Fuyang Teachers College(Natural Science) , 编辑部邮箱 ,2013年04期
- 【分类号】TP311.12
- 【被引频次】1
- 【下载频次】77