Big O Flashcards

1
Q

Ways to think

A
  • counting iterations (sum…)
  • what it means (pairs, strings, sorts…)
  • vizualizing (nxn matrix…)
  • average work (average iteration…)
  • recursive pattern O(branches^depth)
  • rate of increase
    Be careful of n-dependant inside a loop (fib(i)…)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2^10/20/30/40

A
2^10 = 1KB
2^20 = 1MB
2^30 = 1GB
2^40 = 1TB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly