【24h】

Ternary search algorithm: Improvement of binary search

机译:三元搜索算法:二元搜索的改进

获取原文

摘要

The empirical calculation is displayed in this paper for searching which is an improvement of binary search. On the off chance that we don't have any data on how the numbers are sorted out in the array, we need to consecutively analyze every component of the array; it is called as linear search with time complexity O(n).However, if the elements of the array are sorted, given us a chance to say in ascending order, and we wish to locate position of a number target K in the array, we require not make a successive search over the complete array. Therefore we propose the method known as ternary search in order to quickly search the required element. We have additionally turned out to be more viable and effective calculation as contrasted with the binary search as the time complexity of the new proposed calculation lessens to O (logn).
机译:本文显示了用于搜索的经验计算,这是对二进制搜索的改进。如果我们没有关于数组中数字如何排序的任何数据,我们需要连续分析数组的每个组成部分。它被称为具有时间复杂度O(n)的线性搜索。但是,如果对数组中的元素进行排序,给我们一个以升序说的机会,并且我们希望在数组中定位数字目标K的位置,我们不需要对整个数组进行连续搜索。因此,我们提出了一种称为三元搜索的方法,以便快速搜索所需的元素。与二元搜索相反,由于新提议的计算的时间复杂度降低到O(logn),因此我们还发现了一种更可行,更有效的计算方法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号