首页> 外文期刊>Future generation computer systems >New and improved search algorithms and precise analysis of their average-case complexity
【24h】

New and improved search algorithms and precise analysis of their average-case complexity

机译:新的和改进的搜索算法和精确分析它们的平均值案例复杂性

获取原文
获取原文并翻译 | 示例
           

摘要

In this paper, we consider the searching problem over ordered sequences. It is well known that Binary Search (BS) algorithm solves this problem with very efficient complexity, namely with the complexity theta(log(2)n). The developments of the BS algorithm, such as Ternary Search (TS) algorithm do not improve the efficiency. The rapid increase in the amount of data has made the search problem more important than in the past. And this made it important to reduce average number of comparisons in cases where the asymptotic improvement is not achieved. In this paper, we identify and analyze an implementation issue of BS. Depending on the location of the conditional operators, we classify two different implementations for BS which are widely used in the literature. We call these two implementations weak and correct implementations. We calculate precise number of comparisons in average case for both implementations. Moreover, we transform the TS algorithm into an improved ternary search (ITS) algorithm. We also propose a new Binary-Quaternary Search (BQS) algorithm by using a novel dividing strategy. We prove that an average number of comparisons for both presented algorithms ITS and BQS is less than for the case of correct implementation of the BS algorithm. We also provide the experimental results. (C) 2019 Elsevier B.V. All rights reserved.
机译:在本文中,我们考虑通过有序序列进行搜索问题。众所周知,二进制搜索(BS)算法通过非常有效的复杂性解决了这个问题,即复杂性Theta(log(2)n)。 BS算法的开发,例如三元搜索(TS)算法不提高效率。数据量的快速增加使搜索问题比过去更重要。这使得在未实现渐近改善的情况下减少平均比较次数是重要的。在本文中,我们确定并分析了BS的实施问题。根据条件运算符的位置,我们对文献中广泛使用的BS分类了两种不同的实现。我们称这两种实现弱和正确的实现。我们平均计算了两种实施例的精确比较数。此外,我们将TS算法转换为改进的三元搜索(其)算法。我们还通过使用新颖的划分策略提出新的二进制 - 四元搜索(BQS)算法。我们证明,呈现算法的平均比较次数与BS算法的正确实现的情况小于。我们还提供实验结果。 (c)2019 Elsevier B.v.保留所有权利。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号