摘要
排序有许多经典的算法,如插入排序、交换排序、选择排序等。这些排序算法的性能包括时间复杂度、空间复杂度以及稳定性各有优劣。笔者在这里给出一种全新的排序算法——队与栈排序。这种算法打破传统以交换或移动为主要排序的做法,而是借助栈和队这两种数据结构来实现排序。
Sorting has many classical algorithm, such as insertion sort, exchange sort, selection sort etc.The performance of these sorting algorithms including the time complexity, space complexity and stability have their pros and cons. Here the author gives a new algorithm-'-team and stack sort. This algorithm breaks the traditional exchange or move as the main sorting approach, but with the help of stack and the two data structure to achieve the sort.
出处
《电脑与信息技术》
2013年第6期52-53,共2页
Computer and Information Technology
关键词
栈
队列
排序
时间复杂度
空间复杂度
stack
queue
sorting
time complexity, space complexity