首页> 外文会议>American Conference on Applied Mathematics >Multi-key Binary Search and the Related Performance
【24h】

Multi-key Binary Search and the Related Performance

机译:多关键二进制搜索和相关性能

获取原文

摘要

Binary Search is efficient due to it's logarithmic time complexity. It is used to identify the position of a key in a sorted list. Often, computer applications require searching for two to more different keys at the same execution. In this paper, a hybrid algorithm to perform the binary search with 2 tom different keys (m is an integer greater than or equal to 2) in a sorted list of elements is proposed. An m-key version of the proposed algorithm requires considering (2m + 1) different cases. Correctness proof of the algorithm is established using induction on the list size, n. Time complexity of the proposed algorithm is a function of 2 variables, namely, the number of keys, m and the list size, n, and is given as, O(mlog(n)) in both the worst and the average cases. The best case complexity is linear, which is O(m). Performance of 2 and 3-key versions is compared with the classical single key version. Possible key index combinations with the multi-key search strategies are also explored.
机译:由于它的对数时间复杂度,二进制搜索是有效的。它用于识别排序列表中的密钥的位置。通常,计算机应用程序需要在相同执行中搜索两个到更多不同的密钥。在本文中,提出了一种用2个TOM不同键(M是大于或等于2)的二进制搜索的混合算法。所提出的算法的M-key版本需要考虑(2m + 1)不同的情况。使用诱导在列表大小上建立算法的正确性证明,n。所提出的算法的时间复杂度是2个变量的函数,即键数,m和列表大小,n,并且在最差和平均例中给出,并且给出了o(mlog(n))。最佳案例复杂性是线性的,即O(m)。将2和3键版本的性能与经典单键版本进行比较。还探讨了具有多关键搜索策略的可能的关键索引组合。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号