期刊文献+

鸡尾酒排序算法的改进 被引量:1

Improvement of cocktail sort algorithm
在线阅读 下载PDF
导出
摘要 冒泡排序是一种常见的单向的交换排序,而鸡尾酒排序是在冒泡排序的基础上进行改进的一种双向的交换排序,其每一趟排序都可以将当前的最大值和最小值放置到正确的位置.传统的鸡尾酒排序算法即使引入了标志是否交换的变量来记录前一趟数据是否发生交换从而确定排序是否结束,也无法处理前一趟排序有数据交换但是某些连续的数据存储子区间无交换的情况.为了有效降低不必要的比较,引入了一种鸡尾酒排序算法的改进算法. Bubble sort is one of the popular and one-way swapping sorts, while cocktail sort, with the purpose of placing the current maximum and minimum correctly, is a bidirectional swapping sort based on bubble sort. Although conditional cocktail sort can use a variable to record whether swapping has happened in the former round so that it can make a decision that the data has been sorted. However, it can't handle this problem when swapping happens in the former round but there's no swapping in the continuous interval. Improvement has been made in cocktail sort in order to reduce the unnecessary comparison.
作者 魏少涵
出处 《宁德师范学院学报(自然科学版)》 2012年第4期371-376,共6页 Journal of Ningde Normal University(Natural Science)
关键词 冒泡排序 鸡尾酒排序 交换 比较 bubble sort cocktail sort swap comparison
  • 相关文献

参考文献3

二级参考文献16

  • 1AKERS S B, KRISHNAMURTHY B. A group-theoretic model for symmetric interconnection network[J]. IEEE Transaction on Computers, 1989, 38(4): 555-565.
  • 2LAKSHMIVARAHAN S J, ANG Jung-sing, DHALL S K. Symmetry in interconnection networks based on Cayley graphs of permutation groups: a survey[J]. Parallel Computing, 1993, 19(4): 361-407.
  • 3SHI Hai-zhong, NIU Pan-feng. Hamiltonian deconposition of some intercoonection networks[C]//Proceeding of the 3 th Aunnal International Conference on Combinatorial Optimization and Applications. New York: Springer-Verlag, 2009: 231-237.
  • 4BONDY J A, MARTY U S R. Graph theory[M]. London: Springer-Verlag: 2008.
  • 5KRISHNAMOORTHY M S, KRISHNAMOORTHY B. Fault tolerance on star graphs[C]//Proc 2 nd Internat Conf on Super Computing. San Francisco: North Point Press, 1987: 124-129.
  • 6LATIFI S. Combinatorial analysis of fault-diameter of the n-cube[J]. IEEE Transaction on Computers, 1993, 42(1): 27-33.
  • 7JOVUNOVIC Z, MISIC J. Fault tolerance of the star graph interconnection network[J]. Information Processing Letters, 1994, 49(3): 145-150.
  • 8LATIFI S. On the fault-diameter of the star graph[J]. Information Processing Letters, 1993, 46(1): 143-150.
  • 9[美]萨尼(Sahni,S.)著.数据结构、算法与应用:C++语言描述[M].汪诗林等译.北京:机械工业出版社,2000
  • 10陈云霞.Visual Basic实用教程[M].山东东营:石油大学出版社,2000

共引文献2

同被引文献9

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部