首页> 外文期刊>Advances in computational sciences and technology >Recursion in Java: A Quantative Analysis
【24h】

Recursion in Java: A Quantative Analysis

机译:Java中的递归:定量分析

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

摘要

Many problems are solved most readily with recursive algorithms, and recursive algorithms are often shorter and clearer than their iterative counterparts. Recursive algorithm description is typically more elegant and concise than iterative version of the program. The softwares based on recursion are condemned for many years because compilers could not deal efficiently with the overhead of the recursive function call. However, this situation is changing; modern compilers can handle recursion overhead efficiently because of transformation techniques. Performance of computation depends upon construction of compiler, algorithm and hardware design. In this paper we studied the performance of recursive and iterative programs on two different machines and two different versions of JAVA compiler. It has been observed that the performance of the recursive code is 67% better than iterative version.
机译:递归算法最容易解决许多问题,并且递归算法通常比迭代算法短且清晰。递归算法描述通常比程序的迭代版本更为优雅和简洁。基于递归的软件被谴责了很多年,因为编译器无法有效地处理递归函数调用的开销。但是,这种情况正在改变。由于采用了转换技术,现代编译器可以有效地处理递归开销。计算的性能取决于编译器的构造,算法和硬件设计。在本文中,我们研究了两种不同的机器和两种不同版本的JAVA编译器上的递归和迭代程序的性能。已经发现,递归代码的性能比迭代版本的性能高67%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号