今年10月我开始了我的生物信息学硕士学位,因为前生物学家从一段代码中发现递归方程非常困难。如果有人能向我解释这一点,我将非常感激。 如何从这段代码中找到递归方程? procedure DC(n)
if n<1 then return
for i <- 1 to 8 do DC(n/2)
for i <- 1 to n³ do dummy <- 0
我的猜测是T(N
我有困难,了解如何开发递推关系。我给出的代码是 int result = bizarre(n, n);
public static int bizarre (int first, int second)
{
if (second <= 1)
{
int temp = 0;
for (int i = 0; i < first; i++)
tem