通常,非递归算法要保存返回地址,使程序能继续正确执行。
Usually, return address must be saved for continuing a right execution of the program in no recursion version.
二叉树遍历的非递归算法相对于递归算法,减少了函数调用等开销,具有性能优势。
Compared with recursive algorithm for binary tree traversing, non-recursive algorithm reduces expenses of function calls, gains performance advantage.
对使用形式化方法及循环不变式开发新策略开发非递归算法作了较深入的实践和探讨。
The paper contributes to developing non-recursive algorithm using formal method and new strategy of developing loop invariant.
分析递归算法的栈实现以及用栈运算转换递归算法为非递归算法,阐述递归思想及其应用。
The realizing recursive algorithm by stack and the Changing recursive algorithm into non-recursive by stack operation are studied. The thinking of recursion and its application are expounded.
有些算法本质上是递归的,为之编写非递归算法会非常冗长,而且最终也必须使用堆栈进行递归模拟。
Some algorithms are recursive in nature, trying to write non-recursive algorithms is tedious, and in the end they become recursive simulations that use stacks themselves!
对孔明棋求解问题进行分析,提出了基于回溯思想的递归和非递归算法,运行结果表明了算法的有效性。
On the analysis of Kongming chess, proposes recursion and non-recursion algorithms based on backtrack for the issue, which works effectively.
介绍了具有非负和有限支撑约束的递归逆滤波器盲图像复原算法。
A restoration algorithm for recursive inverse filtering blind image is introduced for non-negative and finite support images.
介绍了具有非负和有限支撑约束的递归逆滤波器盲图像复原算法。
A restoration algorithm for recursive inverse filtering blind image is introduced for non-negative and finite support images.
应用推荐