Deck 15: Recursion
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/18
Play
Full screen (f)
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:
- Base case:
- 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:
- Directly recursive:
- 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:
- General case:
- 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:
- Indirectly recursive:
- 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:
- Iterative control structures:
- 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:
- Recursion:
- 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:
- Recursive algorithm:
- 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:
- Recursive definition:
- 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:
- Recursive function:
- 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:
- Rightmost bit (of x):
- 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:
- Tail recursive function:
- Tail recursive function:
Unlock Deck
Unlock for access to all 18 flashcards in this deck.
Unlock Deck
k this deck