【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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号