期刊论文详细信息
Mathematical and Computational Applications
A New Sorting Algorithm for Accelerating Join-Based Queries
Mathkour, Hassan I.1 
关键词: Sorting;    Stable sorting;    Auxiliary storage sorting;    Merging;   
DOI  :  10.3390/mca15020208
学科分类:计算数学
来源: mdpi
PDF
【 摘 要 】

The performance of several Database Management Systems (DBMSs) and Data Stream Management Systems (DSMSs) queries is dominated by the cost of the sorting algorithm. Sorting is an integral component of most database management systems. Stable sorting algorithms play an important role in DBMS queries since such operations requires stable sorting outputs. In this paper, we present a new stable sorting algorithm for internal sorting that scans an unsorted input array of length n and arranges it into m sorted sub-arrays. By using the m-way merge algorithm, the sorted m subarrays will be merged into the final output sorted array. The proposed algorithm keeps the stability of the keys intact. The scanning process requires linear time complexity (O(n)) in the best case, and O(n log m) in the worst case, and the m-way merge process requires O (n log m) time complexity. The proposed algorithm has a time complexity of O (n log m) element comparisons. The performed experimental results have shown that the proposed algorithm outperforms other stable sorting algorithms that are designed for join-based queries.

【 授权许可】

CC BY   

【 预 览 】
附件列表
Files Size Format View
RO201902020839813ZK.pdf 294KB PDF download
  文献评价指标  
  下载次数:3次 浏览次数:1次