- 4
- 0
- 约1.58万字
- 约 5页
- 2017-05-05 发布于湖北
- 举报
AStableComparison-basedSortingAlgorithmwithworst
A Stable Comparison-based Sorting Algorithm with worst Case complexity of O(n log n) Comparisons and
O(n) Moves
Hanan Ahmed-Hosni Mahmoud, and Nadia Alghreimil
Abstract—stable sorting algorithms maintain the relative order of records with equal keys. Such algorithms are required in fields of computer science such as databases applications. A Stable Comparison-based Sorting Algorithm with worst Case complexity of O(n log n) Comparisons and
O(n) Moves. The algorithm comprises two phases; stable rearranging of the input unsorted array into m sorted subarrays, and then K- way merge the sorted subarrays producing an output sorted array in the second phase. The first phase requires linear time, while, in the second phase, the K-way merge requires . The algorithm performs, in the worst case, for an array of size n, an O(n log n)) element comparisons and O(n log n))) element moves. There are no auxiliary arithmetic operations with indices are required. Experimental results show that it outperforms other stable sorting algorithms. Finally, the Analysis of time and space complexity, and required number of moves are presented, along with the auxiliary storage requirements of the proposed algorithm.
Keywords—Stable sorting , auxiliary storage sorting, Sorting.
I. INTRODUCTION
Sorting is one of the most fundamental problems in the field of computer science[1],[2]. Comparison-based algorithms perform, in the average case, at least log n! ≈ n · log n ?n · log e ≈ n · log n ?1.443n comparisons to sort an array of n elements [2],[3]. The lower bound for element moves is n log (n). The merge sort Algorithm performs very closely to the optimum, with n log (n) comparisons [2],[4]. However, the merge sort is not a stable algorithm. The binary-search version of insert sort requires log n!+n comparisons, and only O(1) index variables; of log n bits each, for pointing to the input array [8],[9],[10]. However, the algorithm performs _(n2) element moves, which makes it very slo
您可能关注的文档
- Introduzzjoni.docx
- 政务、涉密人员或直轄市长(含退离职)、县(市)长或简任.doc
- 103年全国公教美展简章.doc
- Cereredeofertenr.10249.doc
- APPELD'OFFRESGéNéRAL.doc
- EECE324Rev.1Add.85Rev.1EECETRANS505Rev.1.doc
- TheFormulaofPrimeNumbersandProofofConjectureLI.doc
- 22ndIEEEInternationalConferenceonParalleland.doc
- HumanBehaviorModelsforAgentsinSimulatorsandGames.doc
- 2月11日星期二.doc
- 安徽省华师联盟2025-2026学年高三上学期1月质量检测生物试卷+答案.doc
- 安徽省华师联盟2025-2026学年高三上学期1月质量检测语文试卷+答案.doc
- 四川省绵阳南山中学实验学校2025-2026学年高三上学期1月月考数学含答案.doc
- 2026届辽宁省大连市高三上学期双基考试物理试卷+答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测化学含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测生物含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测英语含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测政治含答案.doc
- 黑龙江省龙江教育联盟2026年1月高三上学期期末考试化学含答案.doc
- 黑龙江省龙江教育联盟2026年1月高三上学期期末考试生物含答案.doc
最近下载
- 中国水产科学研究院2026年度第一批统一公开招聘备考题库及答案详解(夺冠系列).docx VIP
- 直播电商行业流量转化率优化方案研究报告.docx VIP
- 广东省光大联考2026届普通高中毕业班第二次调研考试化学(含答案).pdf VIP
- 公司收购股权转让法律尽职调查报告律师专业版.pdf
- 金阳投资集团招聘考试题.pdf VIP
- 《胰源性糖尿病诊断与治疗中国专家共识(2025版)》解读PPT课件.pptx VIP
- 有机化合物反应与转化图.PDF
- 山东省枣庄市滕州市2024-2025学年七年级上学期1月期末考试数学试卷(含答案).pdf VIP
- AIGC行业报告:AI生成内容深度产业报告.pdf VIP
- 浙江中医药大学2024-2025学年第1学期《宏观经济学》期末考试试卷(B卷)附标准答案.docx
原创力文档

文档评论(0)