Recursion Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

The terminating scenario or situation in recursive programming that does not use recursion to produce an answer.

A

Base Case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A function that only makes a single recursive call to itself each time the function runs (as opposed to one that would call itself multiple times during execution). The factorial function is a good example of this.

A

Linear Recursion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A recursive process that includes multiple recursive calls inside of a method, such as tree traversal methods that first traverse one branch of the tree from that node, and then the other branch.

A

Non-Linear Recursion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A method where the solution to a problem depends on solution to smaller instances of the same problem.

A

Recursion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

One of two situation in a recursive method, the other being the base case, where another method call is made, moving closer and closer to the base case, which terminates the recursive process an unstacks all previously called methods.

A

Recursive Case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly