Deck 15: Recursion

Full screen (f)
exit full mode
Question
Define recursion.
Use Space or
up arrow
down arrow
to flip the card.
Question
In recursion, the case for which a solution is obtained directly is called the ____________________ case.
Question
In a recursive algorithm, a general case must eventually be reduced to a base case.
Question
A(n) ____________________ function is a function in which the last step executed is the recursive call.
Question
In the Fibonacci sequence, the third Fibonacci number is the ____________________ of the first two numbers.
Question
____________________ control structures use a looping structure.
Question
An iterative function executes more slowly than its recursive counterpart.
Question
What does these terms refer to:

- \gg Base case:
Question
What does these terms refer to:

- \gg Directly recursive:
Question
What does these terms refer to:

- \gg General case:
Question
What does these terms refer to:

- \gg Indirectly recursive:
Question
What does these terms refer to:

- \gg Iterative control structures:
Question
What does these terms refer to:

- \gg Recursion:
Question
What does these terms refer to:

- \gg Recursive algorithm:
Question
What does these terms refer to:

- \gg Recursive definition:
Question
What does these terms refer to:

- \gg Recursive function:
Question
What does these terms refer to:

- \gg Rightmost bit (of x):
Question
What does these terms refer to:

- \gg Tail recursive function:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/18
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 15: Recursion
1
Define recursion.
Recursion is a process of solving a problem by reducing it to smaller versions of itself.
2
In recursion, the case for which a solution is obtained directly is called the ____________________ case.
base
3
In a recursive algorithm, a general case must eventually be reduced to a base case.
True
4
A(n) ____________________ function is a function in which the last step executed is the recursive call.
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
5
In the Fibonacci sequence, the third Fibonacci number is the ____________________ of the first two numbers.
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
6
____________________ control structures use a looping structure.
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
7
An iterative function executes more slowly than its recursive counterpart.
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
8
What does these terms refer to:

- \gg Base case:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
9
What does these terms refer to:

- \gg Directly recursive:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
10
What does these terms refer to:

- \gg General case:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
11
What does these terms refer to:

- \gg Indirectly recursive:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
12
What does these terms refer to:

- \gg Iterative control structures:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:

- \gg Recursion:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
14
What does these terms refer to:

- \gg Recursive algorithm:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
15
What does these terms refer to:

- \gg Recursive definition:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:

- \gg Recursive function:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:

- \gg Rightmost bit (of x):
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:

- \gg Tail recursive function:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 18 flashcards in this deck.