{"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.