Discussion on Using Continue Statement to Improve a Descending Algorithm

Weida Qin, Yinhu Wei
{"title":"Discussion on Using Continue Statement to Improve a Descending Algorithm","authors":"Weida Qin, Yinhu Wei","doi":"10.1109/ICCECT57938.2023.10140341","DOIUrl":null,"url":null,"abstract":"In essence, the simple selection sort, as an important sort descending algorithm that plays a significant role in data mining, decision analysis and other fields, is to compare, assign subscripts and exchange data, which is designed to sort a set of known disordered data in descending order. The analysis on two different sort descending algorithms of simple selection sort using only the main function and the simple selection sort calling the function reveals that the sort descending algorithm uses an if statement in the inner loop. Discussion on how to control the number of if statements used in descending order using the continue statement. The running results showed that the improved algorithm using the continue statement is feasible. It just realized descending sort, and effectively reduced the times of comparing in sort descending and saved time.","PeriodicalId":314504,"journal":{"name":"2023 IEEE International Conference on Control, Electronics and Computer Technology (ICCECT)","volume":"145 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-04-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE International Conference on Control, Electronics and Computer Technology (ICCECT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCECT57938.2023.10140341","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In essence, the simple selection sort, as an important sort descending algorithm that plays a significant role in data mining, decision analysis and other fields, is to compare, assign subscripts and exchange data, which is designed to sort a set of known disordered data in descending order. The analysis on two different sort descending algorithms of simple selection sort using only the main function and the simple selection sort calling the function reveals that the sort descending algorithm uses an if statement in the inner loop. Discussion on how to control the number of if statements used in descending order using the continue statement. The running results showed that the improved algorithm using the continue statement is feasible. It just realized descending sort, and effectively reduced the times of comparing in sort descending and saved time.
用Continue语句改进降序算法的讨论
简单选择排序作为一种重要的排序降序算法,在数据挖掘、决策分析等领域发挥着重要的作用,其本质是对数据进行比较、分配下标和交换,目的是对一组已知的无序数据进行降序排序。对仅使用主函数的简单选择排序和调用函数的简单选择排序两种不同的排序降序算法的分析表明,排序降序算法在内循环中使用if语句。讨论如何使用continue语句按降序控制if语句的数量。运行结果表明,采用继续语句的改进算法是可行的。它只实现了降序排序,有效地减少了排序降序中的比较次数,节省了时间。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信