“双重递归"是什么术语? [英] What's the term for "double recursion"?

查看:200
本文介绍了“双重递归"是什么术语?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个明显的递归函数:

Here's an obviously recursive function:

function()
{
    function();
}

我们将其简单地称为递归",但是这个(几乎)更复杂的版本呢?

We would simply call this "recursive"—but what about this (barely) more complex version?

functionLeft()
{
    functionRight();
}

functionRight()
{
    functionLeft();
}

在这种情况下是否有术语,例如两次递归"?还是没有特定的术语将这种情况与上面的单功能情况区分开来?

Is there a term for this scenario, e.g., "double recursion"? Or is there no specific term to distinguish this case from the single-function case above?

推荐答案

它称为相互递归

这篇关于“双重递归"是什么术语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆