arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1406.1677cs.DScs.ITmath.IT
收藏

一种改进的二叉搜索算法

Modified Binary Search Algorithm

Ankit R. Chadha, Rishikesh Misal, Tanaya Mokashi

摘要:

本文提出了一种改进的传统的二叉搜索算法,在该算法中,它检查存在的输入元素与给定的一组元素的中间元素在每次迭代。改进的二叉搜索算法通过将输入元素与数据集的第一个和最后一个元素以及中间元素进行比较来优化二叉搜索算法的最坏情况,并且还通过减少二叉搜索算法的最坏情况所花费的时间来检查输入数字是否属于给定数据集中存在的数字范围。

英文摘要:

This paper proposes a modification to the traditional binary search algorithm in which it checks the presence of the input element with the middle element of the given set of elements at each iteration. Modified binary search algorithm optimizes the worst case of the binary search algorithm by comparing the input element with the first & last element of the data set along with the middle element and also checks the input number belongs to the range of numbers present in the given data set at each iteration there by reducing the time taken by the worst cases of binary search algorithm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑