2017 p1 Flashcards

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

is 87.000 a real number

A

yes

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

what algorithms can be used to solve tractable problems

A

Linear search
Merge sort
Binary search
Post-order tree-traversal

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

why does bubble sort have the same time complexity as O (n^2)

A

in each pass through the list n times will be examined
there will be at most n passes through the list

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

what is meant by a recursive sub routine

A

A subroutine that calls itself

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

base cases for the subroutine

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