首页    期刊浏览 2025年06月17日 星期二
登录注册

文章基本信息

  • 标题:Upgraded Selection Sort
  • 本地全文:下载
  • 作者:Sunita Chand ; Teshu Chaudhary ; Rubina Parveen
  • 期刊名称:International Journal on Computer Science and Engineering
  • 印刷版ISSN:2229-5631
  • 电子版ISSN:0975-3397
  • 出版年度:2011
  • 卷号:3
  • 期号:4
  • 页码:1633-1637
  • 出版社:Engg Journals Publications
  • 摘要:Sorting is a technique which is frequently used in our day to day life. It has a direct implication on searching. If the data is sorted on any key attribute, finding data based on that key attribute becomes very fast. There are many sorting algorithm that are being used in practical life as well as in computation. We will concentrate on selection sort in this context that has already been used for so many years and are providing a solution to make it more faster as compared to previous one. The upgraded Selection sort works by repeatedly selecting the minimum or the maximum value and placing them in their proper position in the list. We provide a method of selecting both the minimum and the maximum value simultaneously and placing them in their respective positions in a single pass. so that the length of array reduces by two elements in each pass which reduces the number of passes by n/2.Thus array get sorted in ascending order from the beginning of the array, and in descending order from the end and hence the sorting is done from both the ends of the array and hence the array is sorted in less time using this upgraded selection sort as compared to the original selection sort. The complexity of the upgraded selection sort provided in this work comes out to be same as that of the original selection sort ?(n2) but the total number of passes in the original selection sort is n and in upgraded algorithm is n/2.
  • 关键词:sorting; selection sort; minimum; maximum; swap; in place; algorithm
国家哲学社会科学文献中心版权所有