Rahmani Sort:一种具有 O(nlogn) 复杂度的新型插入排序算法变体
Rahmani Sort: A Novel Variant of Insertion Sort Algorithm with O(nlogn) Complexity
AI总结:
本文提出 Rahmani Sort,通过二分搜索定位插入位置以改进插入排序,实现 O(nlogn) 复杂度;实验表明其实际运行性能优于传统插入排序和归并排序。
摘要:
目前存在多种决策支持系统,它们通过实施数据挖掘和数据仓库技术来深入数据之海,以获取有用的知识模式(珍珠)。分类、回归、聚类以及许多其他算法被用于提高决策过程的精确度和准确性。因此,在缩短决策过程的响应时间方面仍有改进空间,尤其是在关键任务操作中。如果通过合适且高效的排序操作使数据有序,就可以最大限度地缩短决策过程的响应时间。插入排序由于其简单直接的逻辑以及适合列表实现的动态特性,更适合此类应用。但它比归并排序和快速排序慢。其速度慢的主要原因有两点:首先,它使用顺序搜索在已排序的左侧子数组中查找下一个关键元素的实际位置;其次,为容纳新插入的元素,需要将元素向右移动一个位置。因此,我提出了一种新算法,采用一种新颖的二分搜索机制技术,在先前已排序的左侧子数组中查找下一个关键项的有序位置,其速度比传统插入排序算法快得多。除插入排序外,还根据新算法的实际运行时间进行了性能测量,并与其他传统排序算法进行了比较。在各种样本数据上获得的结果表明,新算法的性能优于传统插入排序和归并排序算法。
英文摘要:
Various decision support systems are available that implement Data Mining and Data Warehousing techniques for diving into the sea of data for getting useful patterns of knowledge (pearls). Classification, regression, clustering, and many other algorithms are used to enhance the precision and accuracy of the decision process. So, there is scope for increasing the response time of the decision process, especially in mission-critical operations. If data are ordered with suitable and efficient sorting operation, the response time of the decision process can be minimized. Insertion sort is much more suitable for such applications due to its simple and straight logic along with its dynamic nature suitable for list implementation. But it is slower than merge sort and quick sort. The main reasons this is slow: firstly, a sequential search is used to find the actual position of the next key element into the sorted left subarray and secondly, shifting of elements is required by one position towards the right for accommodating the newly inserted element. Therefore, I propose a new algorithm by using a novel technique of binary search mechanism for finding the sorted location of the next key item into the previously sorted left subarray much quicker than the conventional insertion sort algorithm. Performance measurement in terms of the actual running time of the new algorithm has been compared with those of other conventional sorting algorithms apart from the insertion sort. The results obtained on various sample data show that the new algorithm is better in performance than the conventional insertion sort and merge sort algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。