Algorithms Flashcards

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

Is a problem with time complexity O(n log n ) tractable?

A

Yes, a tractable problem has polynomial time or better

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

What time complexity is bubble sort?

A

O(log n)

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

What time complexity is linear search?

A

O(n)

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

What time complexity is merge sort?

A

O(n log n)

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