Recursion Flashcards

1
Q

recursion

A

function makes 1 or more calls to itself during execution

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

activation record

A

stores info about progress of that invocation of function each time function called

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

binary search

A

locates target value w/in sorted sequence of n elements:

O(log n) time

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

sequential search

A

search target by looping thru every element until finding value on unsorted sequence: O(n) time

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

linear recursion/

binary recursion

A

each invocation of body makes at most 1/(2)recursion call(s)(reflects structure of recursion trace)

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