首页> 外文期刊>Journal of Computers >An Empirical Approach to Algorithm Analysis Resulting in Approximations to Big Theta Time Complexity
【24h】

An Empirical Approach to Algorithm Analysis Resulting in Approximations to Big Theta Time Complexity

机译:导致大Theta时间复杂度近似的算法分析的经验方法

获取原文
           

摘要

Literature has shown that apriori or posteriori estimates are used in order to determine efficiency of algorithms. Apriori analysis determines the efficiency following algorithm’s logical structure, while posteriori analysis accomplishes this by using data from experiments. Apriori analysis has two main advantages over posteriori analysis: a.) it does not depend on other factors aside from the algorithm being analyzed; b.) it naturally produces measurements in terms of asymptotic notations. These advantages result in thorough and more generalizable analysis. However, apriori techniques are limited by how powerful the current methods of mathematical analysis are. This paper presents a posteriori method that outputs time complexity measured in Big Theta notation. The developed method uses a series of formulas and heuristics to extract an algorithm’s asymptotic behavior solely from its frequency count measurements. The method was tested on 30 Python programs involving arithmetic operations, iterative statements, and recursive functions to establish its accuracy and correctness in determining time complexity behavior. Results have shown that the developed method outputs precise approximations of time complexity that are expected from manual apriori calculations.
机译:文献表明使用先验或后验估计来确定算法的效率。先验分析确定遵循算法逻辑结构的效率,而后验分析则通过使用实验数据来实现这一目标。先验分析比后验分析有两个主要优点:a。除了分析的算法外,它不依赖于其他因素; b。)它自然会根据渐近符号产生测量值。这些优势可以进行更全面,更通用的分析。但是,先验技术受到当前数学分析方法的强大功能的限制。本文提出了一种后验方法,该方法输出以Big Theta表示法测量的时间复杂度。开发的方法使用一系列公式和试探法,仅从频率计数测量中提取算法的渐近行为。该方法在30个Python程序上进行了测试,这些程序涉及算术运算,迭代语句和递归函数,以确定其确定时间复杂度行为的准确性和正确性。结果表明,所开发的方法可以输出人工先验计算所期望的时间复杂度的精确近似值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号