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
2
Q
At what point does n become useless when an algorithm’s complexity is ( n^2 )?
A
n > 1,000,000 (one million)
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)
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
5
Q
At what point does n become useless when an algorithm’s complexity is ( n! )?
A
n >= 20