S. Mansoor Sarwar , Mansour H.A. Jaragh , Mike Wind
{"title":"中大型数据快速排序、shell排序和归并排序运行时行为的实证研究","authors":"S. Mansoor Sarwar , Mansour H.A. Jaragh , Mike Wind","doi":"10.1016/0096-0551(94)90019-1","DOIUrl":null,"url":null,"abstract":"<div><p>The paper describes the results of a large empirical study to measure the practical behavior of the basic versions of the popular internal sorting algorithms, Shellsort, quicksort, and mergesort, for medium to large size data and compares them with previous results. The results give running times of <em>θ</em>(<em>N</em><sup>1.25</sup>) for Shellsort, quicksort, and mergesort for 1000 < <em>N</em> < 2 × 10<sup>6</sup>. The study also shows that Shellsort behaves better than mergesort for 1000 < <em>N</em> < 150,000. However, mergesort outperforms Shellsort for <em>N</em> > 150,000. Quicksort outperforms both Shellsort and mergesort for all values of <em>N</em> > 1000. Our fits show better performance for Shellsort than the previous studies and are mostly accurate to within 2% for 1000 < <em>N</em> < 2 × 10<sup>6</sup>. The primary reason for this error seems to be related to the error in the measured data.</p></div>","PeriodicalId":100315,"journal":{"name":"Computer Languages","volume":"20 2","pages":"Pages 127-134"},"PeriodicalIF":0.0000,"publicationDate":"1994-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/0096-0551(94)90019-1","citationCount":"3","resultStr":"{\"title\":\"An empirical study of the run-time behavior of quicksort, Shellsort and mergesort for medium to large size data\",\"authors\":\"S. Mansoor Sarwar , Mansour H.A. Jaragh , Mike Wind\",\"doi\":\"10.1016/0096-0551(94)90019-1\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>The paper describes the results of a large empirical study to measure the practical behavior of the basic versions of the popular internal sorting algorithms, Shellsort, quicksort, and mergesort, for medium to large size data and compares them with previous results. The results give running times of <em>θ</em>(<em>N</em><sup>1.25</sup>) for Shellsort, quicksort, and mergesort for 1000 < <em>N</em> < 2 × 10<sup>6</sup>. The study also shows that Shellsort behaves better than mergesort for 1000 < <em>N</em> < 150,000. However, mergesort outperforms Shellsort for <em>N</em> > 150,000. Quicksort outperforms both Shellsort and mergesort for all values of <em>N</em> > 1000. Our fits show better performance for Shellsort than the previous studies and are mostly accurate to within 2% for 1000 < <em>N</em> < 2 × 10<sup>6</sup>. The primary reason for this error seems to be related to the error in the measured data.</p></div>\",\"PeriodicalId\":100315,\"journal\":{\"name\":\"Computer Languages\",\"volume\":\"20 2\",\"pages\":\"Pages 127-134\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1994-05-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://sci-hub-pdf.com/10.1016/0096-0551(94)90019-1\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/0096055194900191\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Languages","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/0096055194900191","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
An empirical study of the run-time behavior of quicksort, Shellsort and mergesort for medium to large size data
The paper describes the results of a large empirical study to measure the practical behavior of the basic versions of the popular internal sorting algorithms, Shellsort, quicksort, and mergesort, for medium to large size data and compares them with previous results. The results give running times of θ(N1.25) for Shellsort, quicksort, and mergesort for 1000 < N < 2 × 106. The study also shows that Shellsort behaves better than mergesort for 1000 < N < 150,000. However, mergesort outperforms Shellsort for N > 150,000. Quicksort outperforms both Shellsort and mergesort for all values of N > 1000. Our fits show better performance for Shellsort than the previous studies and are mostly accurate to within 2% for 1000 < N < 2 × 106. The primary reason for this error seems to be related to the error in the measured data.