首页> 外文期刊>Computers & operations research >Using software complexity measures to analyze algorithms―an experiment with the shortest-paths algorithms
【24h】

Using software complexity measures to analyze algorithms―an experiment with the shortest-paths algorithms

机译:使用软件复杂性度量来分析算法-使用最短路径算法的实验

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

摘要

In this paper, we apply different software complexity measures to a set of shortest-path algorithms. Our intention is to study what kind of new information about the algorithms the complexity measures (lines-of-code, Halstead's volume, and cyclomatic number) are able to give, to study which software complexity measures are the most useful ones in algorithm comparison, and to analyze when the software complexity comparisons are appropriate. The experiment indicates that the software complexity measures give a new dimension to empirical algorithm comparison. The results explicitly show the trade-off between speed and implementation complexity: a faster algorithm typically requires a more complex implementation. Different complexity measures correlate strongly. Therefore, even the simple lines-of-code measure gives useful results. As the software complexity measures are easy to calculate and since they give useful information, the study suggests that such measures should be included in empirical algorithm comparisons. Unfortunately, for meaningful results, all the algorithms have to be developed in the same fashion which makes the comparison of independent implementations difficult.
机译:在本文中,我们将不同的软件复杂性度量应用于一组最短路径算法。我们的目的是研究复杂度度量(代码行,Halstead的体积和圈数)能够提供哪些有关算法的新信息,研究哪些软件复杂度度量是算法比较中最有用的度量,并分析何时进行软件复杂性比较。实验表明,软件复杂性度量为经验算法的比较提供了新的思路。结果明确表明了速度和实现复杂性之间的权衡:更快的算法通常需要更复杂的实现。不同的复杂性度量紧密相关。因此,即使是简单的代码行度量也可以提供有用的结果。由于软件复杂性度量很容易计算,并且由于它们提供了有用的信息,因此该研究建议将这些度量包括在经验算法比较中。不幸的是,为了获得有意义的结果,所有算法都必须以相同的方式开发,这使得比较独立的实现变得困难。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号