Algorithm Concepts Flashcards

(5 cards)

1
Q

At what point does n become useless when an algorithm’s complexity is ( 2^n )?

A

n > 40

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

At what point does n become useless when an algorithm’s complexity is ( n^2 )?

A

n > 1,000,000 (one million)

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

At what point does n become useless when an algorithm’s complexity is ( n log n )?

A

n > 1,000,000,000 (one billion)

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

At what point does n become useless when an algorithm’s complexity is ( log n )?

A

n can be any imaginable number and still be fine

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

At what point does n become useless when an algorithm’s complexity is ( n! )?

A

n >= 20

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