go to previous page   go to home page   go to next page

Answer:

No. It does not mention the base cases.


Complete Rules

 Month
12345678910
Female
Rabbits
11235813213455

A recursive definition (or program) must have two parts:

  1. If the problem is easy, solve it immediately.
  2. If the problem can't be solved immediately, divide it into smaller problems, then:
    • Solve the smaller problems by applying this procedure to each of them.

Here is fib(N):

fib(  ) =        (base case)

fib(  ) =        (base case)

fib( N ) = fib( N-1 ) + fib( N-2 )

QUESTION 17:

The rule seems to be full of blanks. Can you fill them?